How do I do this?
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 3 03:53:14 PDT 2017
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
More information about the Digitalmars-d
mailing list