Error: circular initialization dependency with module actor

kenny funisher at gmail.com
Mon Jan 15 16:19:33 PST 2007


I have circular dependencies in my code too. I think I solved it with 
"private import" -- and I also am using -cov (and that generates 
different linking errors for me, lol)

orgoton wrote:
> == Quote from BCS (ao at pathlink.com)'s article
>> Reply to Orgoton,
>>> Queue (class) has
>>> "public Queue AIQ;"
>>> defined at the end of the module file. This Queue is used on the
>>> default
>>> constructor of Actor (a class). There is no static constructor on
>>> Actor. The only
>>> static thing on Queue is the symbol above. Queue however must store a
>>> list of
>>> Actor's, hence it has an array of Actor. That is a private member of
>>> the Queue
>>> class. Is this the origin of "Error: circular initialization
>>> dependency with
>>> module actor"? Why didn't I have this error with previous versions?
>> Are you using code coverage (the -cov flag)?
> 
> Yes, I am. I mean, I was. I removed the option and the program goes just fine.
> Thanks for the tip :P



More information about the Digitalmars-d mailing list