Setting versions for imports

Jascha Wetzel firstname at mainia.de
Tue Oct 2 07:47:01 PDT 2007


Suppose we have two modules test1 and test2:

module test1;
version(asdf) {}
else { static assert(0); }

module test2;
version = asdf;
import test1;

This won't compile. Is there a way to get the intended behavior without 
passing the versions on the command line?


More information about the Digitalmars-d-learn mailing list