Static initialization order
Walter Bright
newshound1 at digitalmars.com
Wed Feb 3 09:33:33 PST 2010
Justin Johansson wrote:
> May I ask, what are the best solutions for C++ (my current
> dilemma) and what steps will be taken in D2 to zap it.
Within a module, static initialization is done in lexical order.
Across modules, static initialization is performed so that imported
modules are initialized before the importer.
This is true in D1 as well as D2.
More information about the Digitalmars-d
mailing list