Error: circular initialization dependency with module actor

orgoton orgoton at mindless.com
Mon Jan 15 13:23:04 PST 2007


== 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