On Mon, Aug 18, 2003 at 11:38:22AM -0700, K Stol wrote: > if I understood correctly, the problem is that some objects should be > destroyed *immediately*, and should not wait for the GC.
Yep. In perl 5 *all* objects and variables are to be destroyed immediately. This doesn't necessarily mean that their memory has to be freed but that at least their destructor methods are called. > In fact, the programmer may have never heard about a garbage collecting > system at all, and just *assume* that everything which is out of scope, > is destroyed. Yep. That's how most languages with lexical variables work these days. > In real life, these objects may live somewhere in memory, waiting for the GC, > but in fact are still there, so checking them for being alive will not yield > the correct result. I don't understand what you're saying there. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ It's Absinthe time!