[Issue 16491] Forward referencing and static/shared static module constructors break initialisation
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Nov 18 02:30:09 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16491
Jacob Carlborg <doob at me.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doob at me.com
--- Comment #3 from Jacob Carlborg <doob at me.com> ---
Can you show a more extended example(In reply to Ethan Watson from comment #2)
> It is purely for illustrative/example purposes. The data I'm using cannot be
> immutable.
Can you show a more extended example because the above example can be solved by
directly initializing the variable:
__gshared string someOtherClassName = SomeOtherClass.stringof;
--
More information about the Digitalmars-d-bugs
mailing list