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

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

From:
James Mastros
Date:
February 12, 2001 14:57
Subject:
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
20010212175545.C1446@lilith.belledonna.mine.nu
On Mon, Feb 12, 2001 at 05:33:05PM -0500, Dan Sugalski wrote:
>    package foo;
>    use attrs qw(cleanup_sub);
> 
> would be nice, but I don't know that he'll go for it. (Though it's the only 
> way I can think of to avoid AUTOLOAD being considered a potential destructor)
Fiat?

It's pretty hard (for me) to think of when you'd want an AUTOLOADed DESTROY,
since if you create /any/ objects of the class, DESTROY will be called.

"It isn't possible to AUTOLOAD DESTROY." --perlmem(6)

    -=- James Mastros
-- 
"All I really want is somebody to curl up with and pretend the world is a
safe place."
AIM: theorbtwo 	     homepage: http://www.rtweb.net/theorb/



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About