Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!exodus!siegel From: siegel@sun.com (Josh Siegel) Newsgroups: comp.windows.news Subject: Re: garbage collection mysteries Message-ID: Date: 10 May 91 20:49:46 GMT References: <1991May9.161618.13057@canon.co.uk> Sender: news@exodus.Eng.Sun.COM Reply-To: siegel@eng.sun.com Organization: /home/brewpub/siegel/.organization Lines: 38 In-reply-to: smith@canon.co.uk's message of 9 May 91 16:16:18 GMT X-Phone: SUN 415/336-1634 X-Return-Receipt-To: siegel@eng.sun.com > In article <1991May9.161618.13057@canon.co.uk> smith@canon.co.uk (Mark Smith) writes: > > [...] > > Does anyone else have trouble reconciling the description of > garbage collection in NeWS/TNT with reality? From the TNT manual > (I'm using TNT 2.0 beta), ClassCanvas, pages 69/70: > > [...] > Destroy is only called when there are soft references to the object. --josh == /ClassFoo ClassObject [/me] classbegin /NewInit { console (I am alive!\n) fprintf /NewInit super send } def /set_self { /me self soften def } def /destroy { console (I am dead!\n) fprintf /me unpromote /destroy super send } def classend def /new ClassFoo send dup /set_self exch send pop