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

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 24 11:10:15 PDT 2015


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.


More information about the Digitalmars-d mailing list