version: multiple conditions

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 16 02:55:34 PDT 2015


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.

You can use it in your own code if you like, but I strongly recommend against 
that and suggest instead the one of the myriad ways I've suggested before for 
straightforwardly adapting to versions.



More information about the Digitalmars-d mailing list