Sam Tregar wrote: > On Mon, 12 Feb 2001, Dan Sugalski wrote: > > Also, the vast majority of perl variables have no finalization > > attached to them. > > That's true, but without static typing don't you have to treat them as if > they did? At the very least you need to do a "is it an object with a > DESTROY" check at block boundaries. > Only because the type is static, I don't think they wouldn't be references. my $foo = new Baz(); { my Baz $bar = $foo; }; # DESTROY should be called on the object ref'd by $bar ? # It's still ref'd on $foo !!! - Branden
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Sam Tregar
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Jan Dubois
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Branden
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Buddha Buck
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Branden
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Jan Dubois
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Sam Tregar
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Branden
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Sam Tregar
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Nicholas Clark
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Jan Dubois
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Robin Berjon
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Robin Berjon
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) James Mastros
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski