order of static constructor execution

BCS none at anon.com
Fri Mar 12 13:10:10 PST 2010


Hello Walter,

> Don wrote:
> 
>> If that's true, then perhaps a more restricted solution is better.
>> Eg, use Walter's proposal ONLY if the static initializer is mixed in.
>> 
> I should note that all static constructors in a module are combined
> into one function. So, the mixin static initializers are combined with
> any other static initializers.
> 

Does it have to run that way or could you lump them into several pieces and 
have them call each other as needed?

-- 
... <IXOYE><






More information about the Digitalmars-d mailing list