Is __VERSION__ cross-compiler compatible?
Jonathan M Davis
jmdavisProg at gmx.com
Mon Nov 21 17:55:05 PST 2011
On Tuesday, November 22, 2011 02:10:51 Andrej Mitrovic wrote:
> 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.
I'd expect it to be compiler-specific.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list