__VERSION__ and the different compilers

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 9 03:14:13 PDT 2014


Mike Parker:

> Is it safe to assume that __VERSION__ is the same among DMD, 
> LDC and GDC when using the equivalent front-end?

Right. An alternative solution is to use __traits(compiles) and 
use @nogc inside it.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list