DIP56 - inlining

zeljkog via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 4 02:37:07 PST 2015


On 04.02.15 07:46, Zach the Mystic wrote:
>
> It's a bikeshed argument, but why not:
>
> pragma(inline, always);  // warn if unable to inline
> pragma(inline, never);
> pragma(inline);        // revert to default behavior
>
> ...?
>
> I know `true` and `false` are keywords, but why confuse people? What is
> a "true" inline?

I don't think it's about confusion or aesthetic.

For me it's about flexibility and evolution.

pragma(inline, always);
pragma(inline, never);

You can easily add new meaning.
pragma(inline, whatever);

There are maybe some potential here, why to preclude.



More information about the Digitalmars-d mailing list