order of static constructor execution

Walter Bright newshound1 at digitalmars.com
Fri Mar 12 10:17:00 PST 2010


Doing lazy initialization certainly works, but it would require all 
static member access to go through a check for initialization, first. 
The cost of this check persists for a statically compiled language; for 
a JITted language like C# the access can be rewritten to remove the check.



More information about the Digitalmars-d mailing list