Should `pragma(inline, expression)` be allowed ?

Basile B. b2.temp at gmx.com
Thu Nov 12 09:04:21 UTC 2020


On Thursday, 12 November 2020 at 00:54:35 UTC, Nicholas Wilson 
wrote:
> On Wednesday, 14 October 2020 at 17:20:46 UTC, Basile B. wrote:
>> Example usage, probably the only that's interesting at first 
>> glance.
>>
>> ---
>> version(D_Coverage)
>>     enum do_inline = true;
>> else
>>     enum do_inline = false;
>>
>>
>> pragma(inline, do_inline)
>> void stuff(){}
>> ---
>>
>> Although this could be controlled from the command line side, 
>> i.e if -cov is there then be smart and dont put -inline.
>
> https://github.com/dlang/dmd/pull/11954

Hi, thanks for trying the feature. I've created an issue[1] that 
can be referenced in the PR ;)

[1] https://issues.dlang.org/show_bug.cgi?id=21378


More information about the Digitalmars-d mailing list