On Thu, 12 Apr 2012 16:11:11 +0200, dcoder wrote: > My question is, how do I change the code above so that it > works even if I change the name of the file/module? I'm looking for > clean solution something like a macro if one actually exists.
Check out packageName, moduleName, and fullyQualifiedName in std.traits. Additionally, the __FILE__ token will be expanded to the name of the current file. Justin
