DIP56 - inlining

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 3 16:39:03 PST 2015


On Wednesday, 4 February 2015 at 00:24:25 UTC, Mike wrote:
> I think this whole debate could have been avoided if the DIP 
> was worded differently.
>
> Instead of...
>
> pragma(inline, true);  // always inline
> pragma(inline, false); // never inline
> pragma(inline);        // revert to default behavior
>
> ...it should read...
>
> pragma(inline, true);  // enable -inline compiler flag
> pragma(inline, false); // disable -inline compiler flag
> pragma(inline);        // use whatever is passed in on the 
> command line
>
> ...as that is really the intent of DIP56 as confirmed by Walter 
> [1].

No this is definitely not what I wanted.

Proposed version with warning sounds like acceptable compromise 
though.


More information about the Digitalmars-d mailing list