At 06:35 PM 2/13/01 +0000, Nicholas Clark wrote:
> > This may be a naive question, but what is the benefit - aside from
> > consistency, and we don't need to rehash the litany on that - to AUTOLOAD
> > getting called for DESTROY? I've never actually seen any code that makes
> > use of it. I have grown somewhat tired of writing, and teaching, "return
> > if $AUTOLOAD =~ /:DESTROY$/", however.
>
>Doesn't
>
> sub DESTROY {}
>
>have the same effect but with less typing?
Sure (with debatable comments about maintainability since the declaration
is decoupled from the reason - sub AUTOLOAD - for it being there), but the
point still stands.
--
Peter Scott
Pacific Systems Design Technologies
- 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
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Nicholas Clark
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) John Porter
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) James Mastros
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Peter Scott
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Nicholas Clark
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) David Mitchell
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Branden
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) James Mastros
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) John Porter
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) James Mastros
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) David Mitchell
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Branden
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) James Mastros
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) Branden
