force inline/not-inline

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 31 09:06:17 PDT 2015


On Tuesday, 28 July 2015 at 22:12:21 UTC, David Nadlinger wrote:
> I do think it is terribly confusing. pragma(inline) does not 
> cause any inlining by itself at all. It just means to let the 
> compiler do what it normally does (i.e. try to inline if 
> -inline is specified).

I suppose people were frustrated with attributes which can't be 
negated, so they requested default inlining policy just for the 
heck of it, it probably doesn't have a compelling use case? 
Decide on inlining in generic way?


More information about the Digitalmars-d mailing list