Version block "conditions" with logical operators
Tomer Filiba via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 10 07:47:05 PDT 2016
On Tuesday, 10 May 2016 at 12:27:19 UTC, Johan Engelen wrote:
> We resort to enums whenever 'version' is not adequate like this:
> https://github.com/ldc-developers/ldc/blob/master/ddmd/globals.d#L18-L45
A good example -- which only proves how the current version()
block is insufficient. So instead of version(xxx), which states
your intent clearly, you get lots of non-idiomatic static ifs,
which are more cumbersome and error prone.
More information about the Digitalmars-d
mailing list