register mixin, found solution

Frank Benoit keinfarbton at nospam.xyz
Thu Apr 13 16:46:57 PDT 2006


Perhaps for someone interesting...

Let the templates have a static constructor.
But I don't know if this is specified behaviour?

It works, if each mixin is a named mixin.
Then there are no linker errors. They are called in the sequence the
mixin appear in source. In these static constructor, it is possible to
make a registration in static class variables.




More information about the Digitalmars-d-learn mailing list