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

Re: End-of-scope actions: Garbage collection.

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 12, 2001 13:13
Subject:
Re: End-of-scope actions: Garbage collection.
Message ID:
5.0.2.1.0.20010212160627.01afe510@24.8.96.48
At 01:59 PM 2/12/2001 -0700, Tony Olekshy wrote:
>Dan Sugalski wrote:
> >
> > I do wish people would get garbage collection and finalization split in
> > their minds. They are two separate things which can, and will, be dealt
> > with separately.
> >
> > For the record:
> >
> > THE GARBAGE COLLECTOR WILL HAVE NOTHING TO DO WITH FINALIZATION, AND
> > NO PERL OBJECT CODE WILL BE CALLED FOR VARIABLES UNDERGOING GARBAGE
> > COLLECTION.
> >
> > Thank you.
>
>Thank *you* Dan.  I was beginning to wonder if anyone understood.
>
>For the record now, GC is none of your business, you're not
>allowed to know how it works (it's a "black box").  Finalization
>is handled by try {} finally {}.  Finally.  Finalization.  Get it?

Apparently not, since I wasn't talking about try{}/finally{} stuff. I was 
talking about DESTROY (or its equivalent) for objects, which unfortunately 
can't be tied to any one particular place in the code. (Well, besides the 
DESTROY block itself, but that's not what I'm talking about)


					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