Article View: comp.lang.clos
Article #319Re: How to neatly destroy instances?
From: PeiYu Huang
Date: Tue, 13 Oct 1992 14:20
Date: Tue, 13 Oct 1992 14:20
12 lines
1118 bytes
1118 bytes
In article <22625@venera.isi.edu>, tar@ISI.EDU (Thomas A. Russ) writes:
>
>Why do you feel a need to destroy instances explicitly?
>
Because I use a class variable list to maintain all current instances
of that class for browsing purpose. One can use a form in an "initialize-instance :after" method to update the list. I guess I may need to define another method to
clean up the list BEFORE destroying the instance, say my-instance, otherwise when
my-instance becomes unbound, I can no longer access the list via it.
Any comments?
P. Huang
Technical Details
Message-ID:
<1992Oct13.142031.569@colorado.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!boulder!wasser!huangpReferences:
<1992Oct12.223505.12266@colorado.edu> <22625@venera.isi.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos,comp.lang.lisp Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!boulder!wasser!huangp From: huangp@wasser.Colorado.EDU (PeiYu Huang) Subject: Re: How to neatly destroy instances? Message-ID: <1992Oct13.142031.569@colorado.edu> Sender: news@colorado.edu (The Daily Planet) Nntp-Posting-Host: wasser.colorado.edu Reply-To: huangp@wasser.Colorado.EDU (PeiYu Huang) Organization: University of Colorado, Boulder References: <1992Oct12.223505.12266@colorado.edu> <22625@venera.isi.edu> Date: Tue, 13 Oct 1992 14:20:31 GMT Lines: 12