Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!fluke!dyndata!dan From: dan@dyndata.UUCP (Dan Everhart) Newsgroups: comp.lang.c++ Subject: Objective suicide Message-ID: <685@dyndata.UUCP> Date: 28 Jun 90 00:22:13 GMT Organization: Dynamic Data & Electronics, Edmonds WA Lines: 14 Is it kosher for an object to delete itself? To wit: class Obj { /* ... */ void Suicide () { /* ... */ delete this; } // Assumption: "Suicide" only called for Obj's which were // created with "new" and only when the pointer will never again // be used. /* ... */ }