March 15, 2023 Issues » [Issue 23780] New: Manual __ctor call can mutate immutable object in @safe code | |||
|---|---|---|---|
| |||
...int before = s.n;
s.__ctor(456);
assert(s.n == before); // fails
}
---
The cause of... | |||
March 14, 2023 Issues » [Issue 23773] array length assignment in assert condition should error | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23773 --- Comment #6 from Dlang Bot <dlang... | |||
March 14, 2023 Issues » [Issue 23773] array length assignment in assert condition should error | |||
|---|---|---|---|
| |||
...to `_d_arraysetlengthT(a, i)` so that's why the assert error is not caught. -- | |||
March 14, 2023 Issues » [Issue 23778] New: Code generator fails to handle __c_complex_real properly for Windows | |||
|---|---|---|---|
| |||
...c_complex_real n = toNative2(123, 456);
assert(123 == n.re && 456 == n.im);
}
---------
The... | |||
March 14, 2023 Learn » evenChunks on a string - hasLength constraint fails? | |||
|---|---|---|---|
| |||
...line = "abcdef"; auto parts = evenChunks(line, 2); assert(parts == ["abc", "def"]); } ``` But I'm getting... | |||
March 13, 2023 Issues » [Issue 23777] New: Can't strip shared qualifier from static array type | |||
|---|---|---|---|
| |||
...static assert(is(T == int[1])); --- --- // example 2 shared(int[1]) a; static assert(is... | |||
March 13, 2023 Genel » Re: const ile alakalı basit bir hata | |||
|---|---|---|---|
| |||
...inConst(b);/*
auto r = a.outConst(b);
assert( r.x == 42 &&
!isMutable!( typeof(r) )
);//*/
// inConst... | |||
March 13, 2023 Issues » [Issue 23773] array length assignment in assert condition should error | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23773 --- Comment #4 from RazvanN <razvan.nitu1305... | |||
March 13, 2023 Issues » [Issue 23773] array length assignment in assert condition should error | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23773 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
March 13, 2023 Issues » [Issue 23773] array length assignment in assert condition should error | |||
|---|---|---|---|
| |||
...gets the chance to error about the assert. It makes sense that the assignment needs... | |||
Copyright © 1999-2021 by the D Language Foundation