CTFE - compiling other languages inside D

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Aug 10 15:22:57 PDT 2011


Heh, I just tried to outsmart the compiler by mixing in a version
declaration from another file, but it complains about version being
defined after use.

E.g.
ctfe.d:
version = foo;

main.d:
mixin(import("ctfe.d"));
version(foo)  // won't fly, version foo defined after use
{
}


More information about the Digitalmars-d mailing list