[Issue 4274] Better array of inner structs error message

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4274 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --

[Issue 4274] Better array of inner structs error message

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4274 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/b754fbe2883bd182e7a2e6e23e7cbad97bedcd64 Update container.d

[Issue 4274] Better array of inner structs error message

2011-07-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4274 yebblies yebbl...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4274] Better array of inner structs error message

2010-06-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4274 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com --- Comment #1

[Issue 4274] Better array of inner structs error message

2010-06-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4274 --- Comment #2 from bearophile_h...@eml.cc 2010-06-05 04:50:08 PDT --- Structs defined inside functions keep a hidden pointer field to the function they are into. If you return the array of nonstatic structs, the scope stops existing and this

[Issue 4274] Better array of inner structs error message

2010-06-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4274 --- Comment #3 from nfx...@gmail.com 2010-06-05 05:04:20 PDT --- So what? You _can_ have an array of closures. Why not an array of nested structs? The compiler should obviously allocate all variables referenced by the struct on the heap, just

[Issue 4274] Better array of inner structs error message

2010-06-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4274 --- Comment #4 from nfx...@gmail.com 2010-06-05 05:10:24 PDT --- I just tested it, and it seems for nested structs, the compiler correctly allocates upvalues on the heap. The error message you're receiving doesn't make any sense. At least the