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

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

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 13, 2001 08:24
Subject:
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
5.0.2.1.0.20010213111202.01b644a8@24.8.96.48
At 07:51 PM 2/12/2001 -0500, Bryan C. Warnock wrote:
>On Monday 12 February 2001 16:54, Dan Sugalski wrote:
> > >Could you guys please use "destruction" or "cleanup" as the term for the
> > >end-of-scope processing (see e.g. C++).  Finalization is used everywhere
> > >else to mean: called by GC before the memory is released (see e.g
> > >Java/C#).
> >
> > Correct terminology's important. Destruction it is.
>
>Just to make sure I (and everyone else) understand how this fits in, is
>this the same destruction that is handled by the destroy() vtable entry?

Sort of. That's at a lower-level, but

>Does there also need to be a finalize() entry, which will result in a noop
>for most PMCs?  Or am I layers too low?

Nope. destroy() handles any active cleanup a variable might have. The 
garbage collector takes care of the rest.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


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