Object.factory() and exe file size bloat
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 21 06:11:04 PDT 2015
On 21 August 2015 at 14:43, Dicebot via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
> 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)
>
That enforces that foo() is always folded at compile time, not always
inlined, no?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150821/877b0b7d/attachment.html>
More information about the Digitalmars-d
mailing list