Object.factory() and exe file size bloat

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 05:43:56 PDT 2015


On Friday, 21 August 2015 at 12:41:17 UTC, Steven Schveighoffer 
wrote:
> I have no idea. It probably should be guaranteed, because what 
> is the point of having an "always inlined" function that 
> generates it's own code?

If it is guaranteed, almost makes me want to abuse it for this:

pragma(inline, true)
string foo()
{
     if (!__ctfe)
         assert(false);
     // ...
}

(for compilers other than LDC)


More information about the Digitalmars-d mailing list