Is this meant to be possible?

Adam D. Ruppe destructionator at gmail.com
Wed Feb 19 07:28:38 PST 2014


On Tuesday, 18 February 2014 at 00:59:24 UTC, ted wrote:
> so is:
>    createDynamicInstance(ClassInfo type) { return 
> type.create(); }
> the correct implementation ?? - it certainly seems to work...

Yeah, that's good as long as you have a no-arg constructor on the 
class. (the create function never passes arguments to the 
constructor)


More information about the Digitalmars-d-learn mailing list