Article View: comp.lang.clos
Article #49Re: Deleting an Instance
From: Barry Margolin
Date: Thu, 30 Jul 1992 17:11
Date: Thu, 30 Jul 1992 17:11
21 lines
1424 bytes
1424 bytes
In article <1992Jul30.162753.11173@athena.mit.edu> wwinston@athena.mit.edu (R. Whitney Winston) writes:
>How can I remove an instance?
In general, you can't. This is Lisp, and unused objects are removed
automatically by the garbage collector. If your objects aren't going away,
either there's a problem with your GC or you've still got references to the
objects you claim you don't need.
A possible solution, though, is to use "resources". These are collections
of similar objects that are made available for reuse when they're no longer
needed instead of becoming garbage. Some Common Lisp implementations
(Symbolics, Lucid, probably Franz) provide them as an extension; if you're
using an implementation that doesn't, it's pretty easy to write yourself
(there may even have been an article in a past issue of Lisp Pointers that
discussed them and provided an implementation).
--
Barry Margolin
System Manager, Thinking Machines Corp.
barmar@think.com {uunet,harvard}!think!barmar
Technical Details
Message-ID:
<1597rfINNb0@early-bird.think.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!think.com!barmarReferences:
<1992Jul30.162753.11173@athena.mit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.lang.clos Subject: Re: Deleting an Instance Date: 30 Jul 1992 17:11:11 GMT Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 21 Message-ID: <1597rfINNb0@early-bird.think.com> References: <1992Jul30.162753.11173@athena.mit.edu> NNTP-Posting-Host: telecaster.think.com