<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 21 August 2015 at 13:57, Dicebot via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday, 21 August 2015 at 11:48:12 UTC, Steven Schveighoffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sure:<br>
<br>
pragma(inline, true) T[] _d_arrayliteral(T)(size_t length)<br>
<br>
-Steve<br>
</blockquote>
<br></span>
Btw, are `pragma(inline, true)` function actually guaranteed to not have own code gen? :)<br>
</blockquote></div><br></div><div class="gmail_extra">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 module.<br><br>Other than that, the semantics of pragma(inline, true) should guarantee that the function is never *written* to object file.<br><br></div><div class="gmail_extra">Regards<br></div><div class="gmail_extra">Iain<br></div><div class="gmail_extra"><br></div></div>