DIP56 - inlining

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 3 21:02:40 PST 2015


On 2/3/2015 9:00 PM, Mike wrote:
> On Wednesday, 4 February 2015 at 04:46:41 UTC, Walter Bright wrote:
>>
>> The pragma will cause it to ignore the cost function and always inline it.
>
> So, if pragma(inline, true) ignores the cost function, will it *always* inline
> it, or always apply the -inline compiler flag rules (whatever they are)?
>
> If the former,

Yes.

> then I have misunderstood DIP56 yet again.
> If the latter, then yes, it could have been worded better.

Entirely my fault. Sorry about the confusion.



More information about the Digitalmars-d mailing list