mixin template MsgMixin(T ...) {
shared static this() {
import std.stdio;
writeln("register " ~ typeof(this).stringof);
}
}
Thanks a lot both of you. The code below worked. I did not expect
'this' to be available in the static function, but of course the
type of 'this' is available.
- access enclosing type from shared static this() Øivind
- Re: access enclosing type from shared static this() David
- Re: access enclosing type from shared static this() Timon Gehr
- Re: access enclosing type from shared static this() Øivind
