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

Max Samukha maxsamukha at gmail.com
Tue Oct 20 10:16:26 UTC 2020


On Tuesday, 20 October 2020 at 08:52:07 UTC, Basile B. wrote:

>
> yeah, CTFE on `version()` would be basically like `static if 
> (ident <op> ident)` and alikes, so `version()` much less 
> justified because not special anymore.
>
> By the way, to the attention of James, the other day I've found 
> this nice helper by Simons K: 
> https://forum.dlang.org/post/tghdaffyugrajmenddav@forum.dlang.org, allowing to use version idents in static if expressions, the easiest way possible.

It takes a special kind of stubbornness to reject the fact that 
version's limitations failed to serve their purpose.


More information about the Digitalmars-d mailing list