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.