Re: (re Mail::Reporter INIT block ) Re: Mail-Box-2.057 errors

Mark Overmeer <[email protected]> Tue, 21 Sep 2004 11:24:37 +0200
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* DH ([email protected]) [040921 11:13]:
> > Well, there are ways it can happen, for instance if there are circular
> > dependencies between modules.  It is much nicer to put it in a BEGIN or
> > INIT block, but... ok... I will remove the encapsulation...
> 
> No there aren't (Mail::Reporter doesn't have circlar dependencies).
> Besides, circular dependencies are design flaws.
> Why do you keep trying to imagine a hypothetical?:)

.... because in my experience, module users often create those hypothetical
situations....

Circular dependencies do happen, but happily not so often.  The main point
was, that using a BEGIN or INIT is "nicer" (for some definition of "nice")
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net