Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!exnet.iastate.edu!i1neal From: i1neal@exnet.iastate.edu (Neal Rauhauser -- ) Newsgroups: comp.object Subject: Re: Actor question: a:=new(ClassA); Message-ID: <1991Mar24.002656.10093@news.iastate.edu> Date: 24 Mar 91 00:26:56 GMT References: <27749@rouge.usl.edu> Sender: news@news.iastate.edu (USENET News System) Reply-To: i1neal@exnet.iastate.edu (Neal Rauhauser -- ) Organization: Iowa State University Extension Lines: 28 In article <27749@rouge.usl.edu> pcb@basin04.cacs.usl.edu (Peter C. Bahrs) writes: >A question about garbage collection in Actor. When I instantiate a >new object as in a:=new(ClassA); and I am no longer interested in a, >how do I get rid of it? Is there a GC running? For instance, >allocating a collection and filling it with some objects. Now I >do not need is any longer. Now what? I say the destroy object >for memory objects and huge bitmaps but not for anything else. > >I guess I am looking for the comparable method to the C++ destructor and >using free(). a := nil; Actor keeps two variable spaces and copies objects back and forth between them when the system isn't busy. By setting a to nil, you leave whatever a refered to hanging, and when things get copied that information gets left behind. -- Neal i1neal@exnet.iastate.edu "A poor fool indeed is he who adopts a manner of thinking (meant) for others!" - Donatien-Alphonse-Francois de Sade How do I spell relief? D I V O R C E!