Object.factory() and exe file size bloat

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 06:16:01 PDT 2015

On 21 August 2015 at 13:57, Dicebot via Digitalmars-d <
digitalmars-d at puremagic.com> 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? :)

For compilers other than DMD, their code needs to be generated to allow the
backend to inline/optimize calls away - something that I'm pretty sure is
not done when calling a pragma(inline, true) function that lives in another

Other than that, the semantics of pragma(inline, true) should guarantee
that the function is never *written* to object file.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150821/f97f4c2f/attachment.html>

More information about the Digitalmars-d mailing list