Question Object.factory and namespaces.

Justin Whear justin at economicmodeling.com
Thu Apr 12 08:36:25 PDT 2012


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


More information about the Digitalmars-d-learn mailing list