Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!samsung!emory!att!cbfsb!cbnewsc!cbnewsc!lgm From: lgm@cbnewsc.ATT.COM (lawrence.g.mayka) Newsgroups: comp.lang.clos Subject: Re: accessing clos objects Message-ID: Date: 12 Feb 91 15:50:46 GMT References: <1991Feb11.223240.20960@Think.COM> Sender: lgm@cbnewsc.att.com (lawrence.g.mayka) Distribution: comp.lang.clos Organization: AT&T Bell Laboratories Lines: 17 In-Reply-To: barmar@think.com's message of 11 Feb 91 22:32:40 GMT In article <1991Feb11.223240.20960@Think.COM> barmar@think.com (Barry Margolin) writes: method on MAKE-INSTANCE that adds the new instance to the list. You might also want to define a REMOVE-INSTANCE method that would remove the specified instance from the list (otherwise, instances will never get GCed). Some Common Lisp vendors (e.g., Symbolics) offer some form of "weak reference" - a way to refer to an object without protecting it from GC. Using weak references to keep track of extant instances avoids the need for explicit de-allocation. Lawrence G. Mayka AT&T Bell Laboratories lgm@iexist.att.com Standard disclaimer.