On Sunday, 23 February 2014 at 12:07:40 UTC, Walter Bright wrote:
http://wiki.dlang.org/DIP56

Manu has needed always inlining, and I've needed never inlining. This DIP proposes a simple solution.

This is great. I bet this will be useful.

I tend to prefer force-inline/force-not-inline at call site, but realized the proposal will let me do it:

void myFun(bool inlined)(int arg)
{
    static if (inlined)
        pragma(inline, true);
    else
        pragma(inline, false);
}

Then inlining can be entirely explicit :)

Reply via email to