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

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

Nicholas Clark
February 13, 2001 10:00
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
On Tue, Feb 13, 2001 at 12:40:45PM -0500, Dan Sugalski wrote:
> At 05:55 PM 2/12/2001 -0500, James Mastros wrote:
> >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)
> A nice quote. Alas one not in my docs...

There's one in my head (no idea if it's in the docs or the p5p archives)
to the effect of creating a stub DESTROY function (ie

  sub DESTROY {}

) may be a speedup because it stops AUTOLOAD being invoked to  search for

Nicholas Clark Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About