order of static constructor execution
Walter Bright
newshound1 at digitalmars.com
Fri Mar 12 13:03:54 PST 2010
BCS wrote:
> Random thought: Aside from making a new corner case, why not make static
> constructors in mixins only depend on imports from where they are
> defined rather than where they are used?
Template mixins are intended to behave like macros - they are
instantiated in the context of where they are used, not where they are
defined.
Regular templates are instantiated in the context of where they are
defined, not used.
More information about the Digitalmars-d
mailing list