order of static constructor execution

Leandro Lucarella llucax at gmail.com
Sun Mar 14 16:11:27 PDT 2010


BCS, el 12 de marzo a las 04:43 me escribiste:
> Hello Walter,
> 
> >2. If a loop is detected, rather than issuing an error message, simply
> >arbitrarily pick one order and continue constructing.
> 
> How about a way to explicitly cut edges in the graph (tagging
> imports with "pragma(nodep)" or "@nodep" for instance)? That has the
> same end effect but for only a little more work, removes any
> non-determinism and allows for easy control of how things are
> resolved.

Yei! Weak imports (like weak references =P)

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------



More information about the Digitalmars-d mailing list