order of static constructor execution

Ellery Newcomer ellery-newcomer at utulsa.edu
Thu Mar 11 20:46:27 PST 2010


On 03/11/2010 10:15 PM, Walter Bright wrote:
> 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.

Oh, you mean the true dependencies. I was just going to say that 
printing out the cycle that causes bombout would be better than nothing.



More information about the Digitalmars-d mailing list