home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / std / cplus / 1125 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.3 KB

  1. Path: sparky!uunet!olivea!hal.com!hal!brennan
  2. From: brennan@hal.com (Dave Brennan)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Which delete operator should be called?
  5. Message-ID: <BRENNAN.92Sep3095303@yosemite.hal.com>
  6. Date: 3 Sep 92 15:53:03 GMT
  7. References: <BRENNAN.92Sep3010854@yosemite.hal.com>
  8. Organization: HaL Computer Systems, Austin, TX
  9. Lines: 18
  10. NNTP-Posting-Host: yosemite.hal.com
  11. In-reply-to: brennan@hal.com's message of 03 Sep 92 07:08:54 GMT
  12.  
  13. I didn't have my copy of ARM handy when I posted, and I see that it also
  14. says is 12.4 (p. 278) "When invoked by the delete operator, memory is freed
  15. by the destructor for the most derived class of the object using an
  16. operator delete ()."
  17.  
  18. What it doesn't say is which operator delete.  This tends to imply that the
  19. operator delete of the most derived class should be used, but as my
  20. previous post showed it is only used when the class being deleted has a
  21. virtual destructor.  This quote implies that the operator delete of the
  22. most derived class will be called when any object is deleted?
  23.  
  24. Cany anyone clarify this?
  25.  
  26. --
  27. Dave Brennan                                      HaL Computer Systems
  28. brennan@hal.com                                         (512) 794-2855
  29.  
  30. Visit the Emacs Lisp Archive: archive.cis.ohio-state.edu:pub/gnu/emacs
  31.