Strategies for resolving cyclic dependencies in static ctors

Vladimir Panteleev vladimir at thecybershadow.net
Mon Mar 21 19:30:37 PDT 2011


On Tue, 22 Mar 2011 02:12:55 +0200, Nick Sabalausky <a at a.a> wrote:

> The question: What now? What strategies do people find useful for dealing
> with this? Any specific "first steps" to take? Best practices? Etc.

Your post doesn't seem to mention it, but how about converting the static  
ctors to initialization functions, and calling them from a single static  
ctor within the dependency loop?

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list