[Issue 24334] parameter name is ignored in invocation of struct constructor with default values

2024-01-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24334 --- Comment #6 from Nick Treleaven --- > Or perhaps the compiler test suite should cover basic aspects of the feature. It did by the time the spec mentioned named arguments. --

[Issue 24334] parameter name is ignored in invocation of struct constructor with default values

2024-01-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24334 --- Comment #5 from Jim Balter --- > it should perhaps have a warning about stability Or perhaps the compiler test suite should cover basic aspects of the feature. --

[Issue 24334] parameter name is ignored in invocation of struct constructor with default values

2024-01-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24334 --- Comment #4 from Nick Treleaven --- 2.103.1 to 2.104.2: Success with output: a=1 b=99 c=3 Since 2.105.3: Success with output: a=1 b=2 c=99 --

[Issue 24334] parameter name is ignored in invocation of struct constructor with default values

2024-01-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24334 Dennis changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 24334] parameter name is ignored in invocation of struct constructor with default values

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

[Issue 24334] parameter name is ignored in invocation of struct constructor with default values

2024-01-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24334 --- Comment #1 from Jim Balter --- P.S. The default constructor works correctly: struct Foo { int a, b = 2, c = 3; } void main() { auto foo = Foo(1, c: 99); imported!"std.stdio".writefln!"a=%s b=%s c=%s"(foo.a, foo.b, foo.c); } output: a=1