On Monday, 19 November 2012 at 11:43:36 UTC, sclytrack wrote: You could do something like this: string currentModule(alias T = {})() { return __traits(parent, T).stringof; }