Object.factory() and module name
Justin Whear
justin at economicmodeling.com
Fri Apr 26 08:52:02 PDT 2013
On Fri, 26 Apr 2013 17:36:31 +0200, eles wrote:
> On Friday, 26 April 2013 at 15:34:01 UTC, eles wrote:
>
> Alternatively, a function/variable could be provided inside the module,
> returning the module name as a string, so that one could write:
>
> Object.factory(__MODULE__, ".Human");
Instead of modifying the library, why not simply do this yourself?
Object.factory(__MODULE__ ~ ".Human");
More information about the Digitalmars-d
mailing list