Shachar Shemesh wrote:
Under D, there is no facility to transfer a string from the command line to the code, so I can't use that approach.
module a;
void mylog (string) { ... }
module b;
void mylog (string) { ... }
module c;
version(loga) import a; else import b;
..
mylog("boo!");
..
rdmd -version=loga c.d
p.s.: `mixin(import("myfile.d"));` -- C-like #include
