On 21 August 2015 at 13:57, Dicebot via Digitalmars-d < [email protected]> 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 module. Other than that, the semantics of pragma(inline, true) should guarantee that the function is never *written* to object file. Regards Iain
