On Wednesday, 29 January 2014 at 14:24:12 UTC, Martin Cejp wrote: > (though there's no way around having to use 2 different names > for the class and the const instance, is there?) Actually, there is: http://dlang.org/class.html#anonymous But I'm not sure if it works at module level.