bobef wrote:

> I was thinking... what is the point of version() ? It is so inflexible. 
There is no even version(!...). Why not "static if(version(DMD))" or static 
if(is(version == DMD))?
> 
> Regards,
> bobef

What would be the difference except more verbosity?  You can use version(x) 
{ } else { }

The rationale of version() is a simple, coarse grained conditional 
compilation of features. It is not meant for metaprogramming like static if 
is.


Reply via email to