RAII

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 23 06:24:14 PST 2017


On Thursday, 23 February 2017 at 10:48:38 UTC, kinke wrote:
> That's not elegant. You need a factory function for each type 
> containing one of these structs then.

A constructor is just a factory function with a special name... 
it is almost equal amount of work.


More information about the Digitalmars-d-learn mailing list