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. > mixin template MsgMixin(T ...) { > shared static this() { > import std.stdio; > writeln("register " ~ typeof(this).stringof); > } > }