Why version() ?
Lutger
lutger.blijdestijn at gmail.com
Tue Feb 10 03:50:25 PST 2009
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.
More information about the Digitalmars-d
mailing list