DIP56 Provide pragma to control function inlining

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 23 17:12:33 PST 2014


On 2/23/14, 4:07 AM, Walter Bright wrote:
> http://wiki.dlang.org/DIP56
>
> Manu has needed always inlining, and I've needed never inlining. This
> DIP proposes a simple solution.

This makes inlining dependent on previously-seen code. Would that make 
parallel compilation more difficult?

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


Andrei



More information about the Digitalmars-d mailing list