force inline/not-inline

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 28 08:15:58 PDT 2015


On 7/28/15 9:30 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at gmx.net>" 
wrote:
> On Tuesday, 28 July 2015 at 12:46:25 UTC, Adrian Matoga wrote:
>> On Tuesday, 28 July 2015 at 02:05:56 UTC, Daniel Murphy wrote:
>>> "tcak"  wrote in message news:psflpqqpsukpfgpzhngn at forum.dlang.org...
>>>
>>>> Why not like pragma(inline, [try | force | no]) ?
>>>
>>> Walter liked the boolean version, which is certainly better than
>>> nothing.
>>
>> I regret I missed this pull request and the chance to vote for
>> "always"/"never" proposed by yebblies, which hit the right neurons in
>> reader's brain instantly, unlike the generic true/false.
>
> Someone made this exact suggestion in the PR, but as happens with most
> sensible suggestions, it was shot down.

the only thing I can thing of is that true/false are (or have the 
potential to be in this context) expressions, which means one could use 
compile-time logic to specify inlining. The same wouldn't be true of 
arbitrary identifiers.

-Steve


More information about the Digitalmars-d mailing list