Object.factory() and exe file size bloat

Benjamin Thaut via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 01:52:46 PDT 2015


On Friday, 21 August 2015 at 08:49:37 UTC, Jacob Carlborg wrote:
>
> How is it limiting? That it only works with default 
> constructors? I don't think that underlying ClassInfo.find is 
> limiting, which is where the interesting part happens. I'm 
> pretty sure that Object.factory could be extended to support 
> non-default constructors, if that makes it less limiting.

Yes, the usual problem was that it only works with default 
constructors. Also it doesn't work with nested classes e.g.

class Outer
{
   class Inner
   {
   }
}

I don't know if that is fixed now.


More information about the Digitalmars-d mailing list