DIP56 Provide pragma to control function inlining

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 23 20:16:31 PST 2014


On 2/23/14, 5:55 PM, bearophile wrote:
> Andrei Alexandrescu:
>
>> I've always thought the obvious/simple way would be an attribute such
>> as @forceinline and @noinline that applies to individual functions.
>
> Seems good. And what do you think the D compiler should do when you use
> @forceinline and it can't inline?

Compile-time error, no two ways about it.

Andrei




More information about the Digitalmars-d mailing list