version: multiple conditions

Joakim via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 16 06:28:41 PDT 2015


On Tuesday, 16 June 2015 at 09:55:34 UTC, Walter Bright wrote:
> On 6/13/2015 6:51 PM, Steven Schveighoffer wrote:
>> Just use the static if trick.
>
> Someone had used the static if trick in druntime. It caused 
> some weird dependency bugs. I removed it - it turned out to be 
> confusing, buggy, and wholly unnecessary.

Probably because of this forward referencing bug with "static 
if," which I've run into myself:

https://issues.dlang.org/show_bug.cgi?id=3743

I agree with you about using version and I applaud your attempt 
to centralize such version logic, just pointing out that bugs in 
the implementation of "static if" are not a good way to enforce 
this. ;)


More information about the Digitalmars-d mailing list