More operators inside `is(...)` expressions

Ogi ogion.art at gmail.com
Tue Sep 1 07:11:45 UTC 2020


On Friday, 28 August 2020 at 12:45:24 UTC, Jacob Carlborg wrote:
>
> There's a workaround: define bool enums for all version 
> identifiers and use `static if` instead:
>
> version (OSX)
>     enum OSX = true;
> else
>     enum OSX = false;
>
> static if (!OSX) {}
>
> --
> /Jacob Carlborg

Why use `version` then?



More information about the Digitalmars-d mailing list