static array of structs clarification questions
ZombineDev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 13 06:53:39 PST 2016
On Saturday, 13 February 2016 at 10:22:36 UTC, Marc Schütz wrote:
> On Friday, 12 February 2016 at 21:56:09 UTC, Steven
> Schveighoffer wrote:
>> That's odd. I think anonymous probably has the answer (they
>> are context pointers), but I'm also surprised they are null,
>> they shouldn't be.
>
> In this example, `void foo()` doesn't access any outer
> variables, so there's no need for a context to be created.
Yes, but the compiler will create a context regardless of this.
See also this issue:
https://issues.dlang.org/show_bug.cgi?id=15343
More information about the Digitalmars-d-learn
mailing list