develooper Front page | perl.perl6.language | Postings from February 2001

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

February 12, 2001 07:59
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About