[Issue 24540] Add order/index to enum member to return its position

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24540 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #2 from Nick

[Issue 24540] Add order/index to enum member to return its position

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24540 --- Comment #1 from apham --- The value is also needed to be known at compile time static assert(Foo.one.order == 0); static assert(Foo.two.order == 1); --

[Issue 24540] New: Add order/index to enum member to return its position

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24540 Issue ID: 24540 Summary: Add order/index to enum member to return its position Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 24539] __traits(identifier, …) should work with sequences

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24539 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #1 from Nick

[Issue 24539] New: __traits(identifier, …) should work with sequences

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24539 Issue ID: 24539 Summary: __traits(identifier, …) should work with sequences Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 21929] delegates capture do not respect scoping

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21929 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #17 from Nick

[Issue 23136] closure in a loop should hold distinct values for each iteration

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23136 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #3 from Nick

[Issue 22193] is expression not understanding global scope operator

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22193 basile-z changed: What|Removed |Added Keywords||rejects-valid --

[Issue 17364] Difference between slicing a slice and a reference to a slice

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17364 --- Comment #4 from basile-z --- As of v 2.108 DMD is consistent and always verifies that the slice is equal to `[1]`. Maybe that now the issue could be closed with a PR introducing a test with `version()` for each compiler ? --

[Issue 24538] ImportC: packed bitfields not implemented

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24538 Walter Bright changed: What|Removed |Added Keywords||ImportC --

[Issue 24538] New: ImportC: packed bitfields not implemented

2024-05-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24538 Issue ID: 24538 Summary: ImportC: packed bitfields not implemented Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal