February 28, 2023 Issues » [Issue 23509] ImportC: Unable to parse GLibC assert.h's assert (and other nontrivial macros?) | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23509
Dennis <dkorpel@live.nl> changed:
What... | |||
February 27, 2023 Issues » [Issue 23751] New: Returning by ref from opApply fools DIP1000 | |||
|---|---|---|---|
| |||
...nogc{
foreach(ref x;s)
return x;
assert(0);
}
int *escapeStack()@safe{
S s;
return... | |||
February 27, 2023 Genel » Re: CircularList: Dairesel Kuyruk Yapısı | |||
|---|---|---|---|
| |||
...dizi.length = 10; // (2)
dizi.popFront(); // (3)
assert(dizi.length == 9); // (4) Evet, 9 ama... | |||
February 28, 2023 Announce » Re: D Language Foundation January 2023 Quarterly Meeting Summary | |||
|---|---|---|---|
| |||
...T)(T thing) {
version(Feature) {
} else
static assert(0, "feature not had, can't do... | |||
February 26, 2023 Issues » [Issue 23746] New: ICE with bit-wise binops with vector masks | |||
|---|---|---|---|
| |||
...4]);
assert(clamp!int4([0, 1, -2, 3]).array == [0, 1, -1, 1]);
assert(clamp... | |||
February 26, 2023 Issues » [Issue 23743] wrong code with `foreach`, `ubyte`, `>=`, ternary operator | |||
|---|---|---|---|
| |||
...ubyte x = a[i];
ubyte v = x >= 1 ? 255 : 0;
assert(cast(int)v == 255);
}
}
```
-- | |||
February 26, 2023 General » my new favourite wrong code bug | |||
|---|---|---|---|
| |||
...a)
{
ubyte v = x >= 1 ? 255 : 0;
assert(v == 255); /* fails; should pass */
}
}
```
Astonishing.
Filed... | |||
February 26, 2023 Issues » [Issue 23743] New: wrong code with `foreach`, `ubyte`, `>=`, ternary operator | |||
|---|---|---|---|
| |||
...a)
{
ubyte v = x >= 1 ? 255 : 0;
assert(v == 255); /* fails; should pass */
}
}
dmd2.102... | |||
February 25, 2023 Issues » [Issue 23739] Can't return by ref from opApply iteration | |||
|---|---|---|---|
| |||
...s)@safe{
foreach(x;s)
return x;
assert(0);
}
void main()@safe{
auto s=new... | |||
February 25, 2023 Issues » [Issue 23739] New: Can't return by ref from opApply iteration | |||
|---|---|---|---|
| |||
...s)
return x;
assert(0);
}
void main(){
auto s=new S;
assert(&foo(*s) is... | |||
Copyright © 1999-2021 by the D Language Foundation