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

Basile B. b2.temp at gmx.com
Thu Oct 15 13:23:17 UTC 2020


On Thursday, 15 October 2020 at 09:14:05 UTC, Per Nordlöw wrote:
> On Wednesday, 14 October 2020 at 17:22:40 UTC, Basile B. wrote:
>>> version(D_Coverage)
>>>     enum do_inline = true;
>>> else
>>>     enum do_inline = false;
>
> This has been discussed but Walter is against it if I remember 
> correctly.

That's exactly why I ask here be fore opening an issue

> I use
>
> void foo()
> {
>     version(D_Coverage) {} else pragma(inline, true);
> }

Ah yeah ? this works to attach or not the pragma to a func in 
particular? I didn't think to that


More information about the Digitalmars-d mailing list