Is __VERSION__ cross-compiler compatible?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Nov 21 17:10:51 PST 2011


I've seen this code used somwhere:

static if (__VERSION__ > 2048)
{
}

Does this work for all compilers, or is it DMD-specific? Also, does
DMD1 define this too? I'm trying to retain compatibility of some D1
sample code but introduce D2 support as well.


More information about the Digitalmars-d-learn mailing list