static init cycle detection problem

"Øivind" oivind.loe at gmail.com
Wed Sep 19 14:39:23 PDT 2012


> Another way of approaching this would be if I could feed a list 
> of modules into DMD during compile time. In C++, i would be 
> able to do this by passing a define to g++ on the command line 
> when invoking it. Is it possible to do something similar with 
> DMD? E.g. create a list of modules before invoking DMD, pass it 
> to DMD, and use this at compile time to import and call my init 
> function?

I can of course just generate a separate init.d file containing 
all of this info and then use that for static init of my modules. 
Think that should work :)


More information about the Digitalmars-d-learn mailing list