force inline/not-inline

tcak via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 27 12:56:25 PDT 2015


On Monday, 27 July 2015 at 08:52:02 UTC, Marc Schütz wrote:
> On Monday, 27 July 2015 at 02:19:28 UTC, Jonathan M Davis wrote:
>> [...]
>
> The result was that the pragma _forces_ inlining. If the 
> compiler cannot inline it for whatever reason, it prints an 
> error and exits. This is mostly to accommodate DMD, which has 
> some restrictions about which functions can be inlined.

Why not like pragma(inline, [try | force | no]) ?


More information about the Digitalmars-d mailing list