- From: Martin J. Duerst <duerst@w3.org>
- Date: Wed, 28 Apr 1999 13:27:32 +0900
- To: www-lib@w3.org
With the permission of the author, I'm forwarding this mail to the list. > From: bart.vandeghinste@dewildecbt.com > Sender: "Bart Vande Ghinste" <bart.vandeghinste@dewildecbt.com> > To: <duerst@w3.org> > Subject: Slowly moving to C++ > Date: Fri, 23 Apr 1999 11:22:46 +0200 > Hello, > > I just read your post in the www-lib mailing list about the move from C to > C++. At the end you wrote : > > "The main problem that isn't addressed here is that it's not really > advisable in C++ for an object to delete itself, and that therefore deletion > has to be done at the place where the object is constructed." > My question is why ? I can see 2 issues with it : > 1. Deletion of object by an external user after object has deleted it self : > Make you destructor protected and things won't happen again. > 2. Who deletes who ? Normally the creator is responsible for deleting the > object. > Use a platform independent COM reference counting scheme as Netscape does in > Mozilla. This way each one has the impression of deleting the object. Also > in this way the library gets a more interface alike approach. > > These are just my two cents about it... > > > Very Best Regards, > > Bart > > > #-#-# Martin J. Du"rst, World Wide Web Consortium #-#-# mailto:duerst@w3.org http://www.w3.org
Received on Wednesday, 28 April 1999 01:25:46 UTC