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
one.

Nicholas Clark

Reply via email to