[Issue 8864] Simpler syntax for array literal of structs from one argument

2018-01-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8864 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 8864] Simpler syntax for array literal of structs from one argument

2014-09-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8864 --- Comment #4 from Kenji Hara --- *** Issue 7255 has been marked as a duplicate of this issue. *** --

[Issue 8864] Simpler syntax for array literal of structs from one argument

2014-06-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8864 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #3 from Kenji Hara --- https:/

[Issue 8864] Simpler syntax for array literal of structs from one argument

2014-06-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8864 --- Comment #2 from Kenji Hara --- Today following style initializing is properly allwed: struct S { this(int n) {} } S s = 1;// translated to: T t = T(1); As a natural conclusion, following syntax should also be accepted IMO. S[] a = [1, 2,

[Issue 8864] Simpler syntax for array literal of structs from one argument

2012-10-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8864 --- Comment #1 from bearophile_h...@eml.cc 2012-10-21 14:26:37 PDT --- It's meant to work with 2D arrays too: struct Nibble { ubyte u; this(ubyte ub) in { assert(ub < 16); } body { this.u = ub; } } void main