DIP56 Provide pragma to control function inlining

Jerry jlquinn at optonline.net
Mon Feb 24 14:09:48 PST 2014


Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> writes:

> On 2/23/14, 8:26 PM, Vladimir Panteleev wrote:
>> Thus, I think there should be "try to inline" (same as -inline) and
>> "always inline" (failure stops compilation).
>
> Sounds fair enough.

pragma(inline, false);
pragma(inline, true);
pragma(inline, force);  // inline or die

How is that?


More information about the Digitalmars-d mailing list