Factory pattern for classes

Ali Çehreli acehreli at yahoo.com
Mon Aug 10 16:45:27 UTC 2020

On 8/10/20 8:38 AM, lexxn wrote:

> Btw is it possible to pass a property to the constructor, if I've one 
> declared, in the factory? I'm talking about this piece 
> cast(A)Object.factory("deneme.A")

I think you mean "parameter". No, Object.factory creates the object with 
its default constructor.


More information about the Digitalmars-d-learn mailing list