Object.factory

dennis luehring dl.soluz at gmx.net
Thu Jun 7 12:28:47 PDT 2007


> Note that if you know the class name at compile time, you don't need
> Object.factory: you can use a mixin statement instead, which works just as you'd
> expect and without runtime costs:
> mixin("MyClass a = new MyClass;");

and why not just

MyClass a = new MyClass;

why is there a need for mixin the code???





More information about the Digitalmars-d mailing list