dickl wrote: > I should have been a little more clear, a static this() as a member of a > class. Still works: -------------------------- H:\cbx>type test.d import std.stdio; void main() { printf("hello\n"); } class C { static this() { printf("betty\n"); } } H:\cbx>dmd test H:\cbx>test betty hello H:\cbx>