compile-time test against dmd/phobos version number
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 6 18:41:54 PST 2017
On Saturday, 7 January 2017 at 02:30:53 UTC, Jon Degenhardt wrote:
> Is there a way to make a compile time check against the
> dmd/phobos version number? Functionally, what I'd like to
> achieve would be equivalent to:
>
> version(dmdVersion >= 2.070.1)
> {
> ....
> }
> else
> {
> ...
> }
static if (__VERSION__ == 2072) { wow, it's dmd 2.072! }
More information about the Digitalmars-d-learn
mailing list