Compiler version at compile-time

David Eagen learner at mailinator.com
Tue Mar 11 19:46:29 PDT 2014


Is there a way to determine the compiler version at compile time? 
Something like:

static if(DMD_VERSION >= 2.066) {
   virtual int foo();
} else {
   int foo();
}



More information about the Digitalmars-d-learn mailing list