Object.factory() and exe file size bloat

via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 22 01:19:50 PDT 2015


On Saturday, 22 August 2015 at 08:16:06 UTC, Marc Schütz wrote:
> Another possible mechanisms would be some UDA magic.

E.g.:

     class MyClass {
         @factorizable
         this() { }
         @factorizable
         this(string) { }
         this(int) { }
     }

     mixin registerFactoryConstructors; // for entire module


More information about the Digitalmars-d mailing list