DMD Compiler Version Dependent Conditional Compilation

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 9 10:36:09 PDT 2014


Can I use the version keyword or static if to perform conditional 
compilation  that depends on the version of DMD?

I typicall something like

version(>= DMD_2.0.66)
{
     // use new byChar, byWchar, byDchar, byCodepoint
}
else
{
     // use old style slower version
}

If so how?


More information about the Digitalmars-d-learn mailing list