Interdependent modules?

kris foo at bar.com
Mon Jun 19 21:12:10 PDT 2006


Carlos Santander wrote:
> Jeremy Gibson <jtgibson telus net> escribió:
>> Naturally, the compiler doesn't like this kind of cross-dependency of 
>> modules.
>> However, being a total newbie doesn't help me find an answer, so I 
>> thought I'd
>> resort to the experts.
>>
> 
> The only reason why the compiler shouldn't accept it is if you have 
> module ctors or static class ctors in both modules. You should try to 
> remove them from one of the modules.

Note that the -cov option will generate static-ctors, so you have to be 
aware of that with respect to cyclical imports :)



More information about the Digitalmars-d-learn mailing list