Nested struct sauses error
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Sun Mar 12 11:59:43 PDT 2017
On Sunday, 12 March 2017 at 18:46:14 UTC, fantom wrote:
> Can anybody explain me what is wrong? Thanks
easy fix is to likely make it a `static struct` even if nested.
That will remove access to local variables of the function but
should compile.
The reason is that access to those local variables needs a hidden
pointer that won't be initialized properly without the right
construction.
More information about the Digitalmars-d
mailing list