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

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

Thread Previous | Thread Next
Dan Sugalski
February 13, 2001 08:24
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
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.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

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