digitalmars.D.learn - Checking compiler versions
- H. S. Teoh (9/9) Aug 03 2013 What's the way to determine the version of the compiler being used to
- anon (2/2) Aug 10 2013 would http://dlang.org/lex.html#specialtokens __VERSION__ and a
What's the way to determine the version of the compiler being used to compile a program? I'm trying to make code compile with 2.063, that currently only works in git HEAD because of an improvement in Phobos. I'd like to be able to somehow version() the compatibility code out in versions later than 2.063 by checking the compiler version. T -- Nothing in the world is more distasteful to a man than to take the path that leads to himself. -- Herman Hesse
Aug 03 2013
would http://dlang.org/lex.html#specialtokens __VERSION__ and a static if help?
Aug 10 2013