in reply to (tye)Re2: Tie & Destroy, OOP
in thread Tie & Destroy, OOP
Yes, you can do the same with a global variable. However
my point was that even with every lexical in file scope,
having one of the direct references to a lexical inside of
a function brings the problem back.
BTW the more I think about it, the more I like the idea of having a flyweight implementation with an END block to kill all of the objects. That allows module authors to create objects which clean themselves up reliably without assuming that users are cautious.
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re3: Tie & Destroy, OOP
by tye (Sage) on Aug 10, 2001 at 06:26 UTC | |
by tilly (Archbishop) on Aug 10, 2001 at 08:19 UTC |
In Section
Seekers of Perl Wisdom