Re: Checking compiler versions

2013-08-10 Thread anon
would http://dlang.org/lex.html#specialtokens __VERSION__ and a static if help?

Re: Checking compiler versions

2013-08-03 Thread H. S. Teoh
On Sat, Aug 03, 2013 at 11:09:08AM -0700, H. S. Teoh wrote: > 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

Checking compiler versions

2013-08-03 Thread H. S. Teoh
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