🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #189

Re: Which delete operator should be called?

#189
From: Dave Brennan
Date: Thu, 03 Sep 1992 15:53
18 lines
1316 bytes
I didn't have my copy of ARM handy when I posted, and I see that it also
says is 12.4 (p. 278) "When invoked by the delete operator, memory is freed
by the destructor for the most derived class of the object using an
operator delete ()."

What it doesn't say is which operator delete.  This tends to imply that the
operator delete of the most derived class should be used, but as my
previous post showed it is only used when the class being deleted has a
virtual destructor.  This quote implies that the operator delete of the
most derived class will be called when any object is deleted?

Cany anyone clarify this?

--
Dave Brennan                                      HaL Computer Systems
brennan@hal.com                                         (512) 794-2855

Visit the Emacs Lisp Archive: archive.cis.ohio-state.edu:pub/gnu/emacs
Technical Details
Message-ID: <BRENNAN.92Sep3095303@yosemite.hal.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!hal.com!hal!brennan
References: <BRENNAN.92Sep3010854@yosemite.hal.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!hal.com!hal!brennan
From: brennan@hal.com (Dave Brennan)
Newsgroups: comp.std.c++
Subject: Re: Which delete operator should be called?
Message-ID: <BRENNAN.92Sep3095303@yosemite.hal.com>
Date: 3 Sep 92 15:53:03 GMT
References: <BRENNAN.92Sep3010854@yosemite.hal.com>
Organization: HaL Computer Systems, Austin, TX
Lines: 18
NNTP-Posting-Host: yosemite.hal.com
In-reply-to: brennan@hal.com's message of 03 Sep 92 07:08:54 GMT