DIP56 Provide pragma to control function inlining

Walter Bright newshound2 at digitalmars.com
Sun Feb 23 18:12:05 PST 2014


On 2/23/2014 5:12 PM, Andrei Alexandrescu wrote:
> This makes inlining dependent on previously-seen code. Would that make parallel
> compilation more difficult?

I don't understand the question. Inlining always depends on the compiler having 
seen the function body.

> I've always thought the obvious/simple way would be an attribute such as
> @forceinline and @noinline that applies to individual functions.

Since inlining can't be done without the function body, putting the pragma in 
the function body makes sense.


More information about the Digitalmars-d mailing list