he-the-great/Juno-Windows-Class-Library — Issue #7: cyclic depedencies in Juno modules
Author: Numpsy
Created: 2011-11-09 15:30:06+00:00
State: open

The tlbimpd utility now builds with DMD2 but when you try to run it you get:

Cyclic dependency in module juno.locale.core
imported from (juno.base.string)
imported from juno.utils.registry containing module ctor/dtor
imported from (juno.locale.time)
imported from juno.locale.core containing module ctor/dtor
Cycle detected between modules with ctors/dtors:
juno.locale.core -> juno.utils.registry -> juno.locale.core
object.Exception@src\object_.d(2081): Aborting!

Because locale.core and utils.registry both contain static destructors.

However, all the destructors do is set member variables to null, so do they actually need to be there?
This particular error goes away if the static destructor in utils.registry.RegistryKey is removed.