www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - ERROR: circular initialization dependency with module

reply Cris <central_p hotmail.com> writes:
What does this run-time error message mean?
Mar 09 2006
parent "Derek Parnell" <derek psych.ward> writes:
On Fri, 10 Mar 2006 02:26:43 +1100, Cris <central_p hotmail.com> wrote:

 What does this run-time error message mean?
It means that two or more modules import each other and at least one has a ctor or dtor. I quote the manual ... "Cycles (circular dependencies) in the import declarations are allowed as long as not both of the modules contain static constructors or static destructors. Violation of this rule will result in a runtime exception." -- Derek Parnell Melbourne, Australia
Mar 09 2006