🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #331

Re: How to neatly destroy instances?

#331
From: Jeff Morrill
Date: Tue, 13 Oct 1992 11:42
17 lines
1270 bytes
Maybe somebody could explain again exactly why finalization is useful.

If you "let go" of an object in the sense of removing the last pointer
to it, then couldn't the application "finalize" the object at that time?
Why is it better to wait until the garbage collector gets around
to cleaning up the bits?

If finalization was added to the language, then it would
promote laziness in the language.  The garbage collector would end
up doing all sorts of things like closing forgotten streams, freeing
forgotten windows, releasing forgotten locks.  Given finalization,
I don't see any way of preventing the garbage collector from getting
involved in essentially any activity.

jeff morrill
jmorrill@bbn.com
Technical Details
Message-ID: <1490.719005371@bbn.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bbn.com!jmorrill
References: <9210131832.AA11060@vapor.Franz.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bbn.com!jmorrill
From: jmorrill@bbn.com (Jeff Morrill)
Newsgroups: comp.lang.clos
Subject: Re: How to neatly destroy instances?
Message-ID: <1490.719005371@bbn.com>
Date: 13 Oct 92 11:42:51 GMT
Article-I.D.: bbn.1490.719005371
References: <9210131832.AA11060@vapor.Franz.COM>
Sender: daemon@cis.ohio-state.edu
Reply-To: jmorrill@BBN.COM
Organization: The Ohio State University Department of Computer and Information Science
Lines: 17