Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!jimad From: jimad@microsoft.UUCP (Jim ADCOCK) Newsgroups: comp.lang.c++ Subject: Re: Objective suicide Message-ID: <55552@microsoft.UUCP> Date: 29 Jun 90 18:44:16 GMT References: <685@dyndata.UUCP> Reply-To: jimad@microsoft.UUCP (Jim ADCOCK) Organization: Microsoft Corp., Redmond WA Lines: 10 In article <685@dyndata.UUCP> dan@dyndata.UUCP (Dan Everhart) writes: >Is it kosher for an object to delete itself? I believe so, but I've never seen anything definitive actually specifying its permissibility. Its always worked for me. Also, destructors traditionally are implemented [implicitly] so as to do the freeing of the space that their objects take -- if the destructor is called via delete. So destructors could be taken as an example where objects delete themselves. But, destructors are special functions -- which makes them a less than totally definitive answer to this question.