pragma(inline, true) not very useful in its current state?

Manu via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 25 21:17:27 PDT 2015


On 25 September 2015 at 04:10, John Colvin via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Thursday, 24 September 2015 at 15:47:45 UTC, David Nadlinger wrote:
>>
>> Hi all,
>>
>> I'm not even referring to the multitude of restrictions in the DMD
>> frontend inliner here. When looking into the remaining 2.068 test failures
>> for LDC, I was surprised to find out that DMD only honors pragma(inline,
>> true) when -inline is actually passed on the command line.
>>
>> This seems to be completely against what many people I spoke to
>> (including, of course, our resident Mr. Why-Can't-D-Be-More-Like-C++, Manu
>> Evans) cite as one of the primary use cases for the feature, which is to
>> force inlining of certain functions even in debug builds.
>>
>> What were the reasons behind this decision?
>>
>>  — David
>
>
> Can't ldc and gdc just be sane and let dmd carry on being (ahem) odd.

This. Please.



More information about the Digitalmars-d mailing list