[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 06:27:31 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16491

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=16673

--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> ---
The issue is simply that you have a cycle. Forward referencing has nothing to
do with it.

Unfortunately, this is functioning as designed. Martin has some ideas to make
this possibly work, but those haven't been implemented yet. See
https://issues.dlang.org/show_bug.cgi?id=16673

--


More information about the Digitalmars-d-bugs mailing list