Error: circular initialization dependency with module actor
BCS
ao at pathlink.com
Mon Jan 15 13:42:07 PST 2007
Reply to Orgoton,
> == 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
>
That is a big problem (bug?) in DMD, -cov adds a static this that has dependencies
(and shoudn't).
More information about the Digitalmars-d
mailing list