Path: utzoo!attcan!uunet!samsung!think!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!star.cs.vu.nl!jos From: jos@cs.vu.nl (Jos Warmer) Newsgroups: comp.lang.eiffel Subject: Re: What happens when you're gone and forgotten? Message-ID: <6025@star.cs.vu.nl> Date: 19 Mar 90 14:48:13 GMT References: <1586@xyzzy.UUCP> Sender: news@cs.vu.nl Lines: 25 langley@yoyodyne.rtp.dg.com writes: >How do I write a class so that a routine will get called >every time the object is forgotten? The class MEMORY from the support library has a function `dispose'. Whenever an object is destroyed by the garbage collector this function is called. To get the behaviour you desire, inherit from class MEMORY and redefine the `dispose' function. The function is not exported, so it does not show up in the class interface and therefore it is not described in the library manual. The only place where it is documented is in the `RELEASE 2.2 OVERVIEW'. Jos Warmer jos@cs.vu.nl -- Jos Warmer jos@cs.vu.nl ...uunet!mcvax!cs.vu.nl!jos