Object.factory() and exe file size bloat

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 05:41:19 PDT 2015


On 8/21/15 7:57 AM, Dicebot wrote:
> On Friday, 21 August 2015 at 11:48:12 UTC, Steven Schveighoffer wrote:
>> Sure:
>>
>> pragma(inline, true) T[] _d_arrayliteral(T)(size_t length)
>>
>> -Steve
>
> Btw, are `pragma(inline, true)` function actually guaranteed to not have
> own code gen? :)

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?

But if you took the address of it, it would need the code to be 
generated. Not sure what happens there, probably should be an error.

-Steve


More information about the Digitalmars-d mailing list