order of static constructor execution

Walter Bright newshound1 at digitalmars.com
Thu Mar 11 20:15:56 PST 2010


Ellery Newcomer wrote:
> On 03/11/2010 08:42 PM, Walter Bright wrote:
>>
>> 2. Trying to analyze the static constructors to see what the
>> dependencies actually are is fraught with unsolvable problems.
>>
> 
> could you elucidate on this point? Is it definitely impossible to get a 
> hold of a complete dag, even if at runtime?


Suppose the static constructor calls foo(), the implementation of which 
is hidden to the compiler.



More information about the Digitalmars-d mailing list