DIP56 Provide pragma to control function inlining

Walter Bright newshound2 at digitalmars.com
Sun Feb 23 13:38:47 PST 2014


On 2/23/2014 12:31 PM, Andrej Mitrovic wrote:
> On Sunday, 23 February 2014 at 20:29:19 UTC, Walter Bright wrote:
>> I'll add:
>>
>>     pragma(inline);
>
> That's just going to confuse people, because they'll think *this* forces inlining.

Perhaps, but there's precedent with how align works, and how default 
initialization of variables works.


> I'd prefer 3 separate states. pragma(inline), pragma(no_inline), and
> pragma(default_inline) or something like that.

That makes documentation with a sorted list of pragmas impractical.


More information about the Digitalmars-d mailing list