home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13435 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.lang.c++
  2. From: nikki@trmphrst.demon.co.uk (Nikki Locke)
  3. Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
  4. ReplyTo: nikki@trmphrst.demon.co.uk
  5. Subject: Re: can I 'delete' without a 'new'?
  6. References: <1992Sep5.160932.19698@taumet.com>
  7. Distribution: world
  8. X-Mailer: cppnews $Revision: 1.15 $
  9. Organization: Trumphurst Ltd.
  10. Lines: 14
  11. Date: Mon, 7 Sep 1992 18:45:52 +0000
  12. Message-ID: <715916752snx@trmphrst.demon.co.uk>
  13. Sender: usenet@gate.demon.co.uk
  14.  
  15.  
  16. In article <1992Sep5.160932.19698@taumet.com> steve@taumet.com (Steve Clamage) writes:
  17.  
  18. > It is always harmless to
  19. > delete a null pointer.
  20. Except in some previous Zortech C++ versions, where calling delete for a 
  21. pointer to a class with a virtual delete, with a value 0, crashed the 
  22. machine. This is, of course, a bug - but one to look out for.
  23. ---
  24. Nikki Locke              |                        | nikki@trmphrst.demon.co.uk
  25. Trumphurst Ltd.          | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
  26. PC and Unix consultancy  | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
  27. trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
  28. Demon.co.uk is a dial-up subscription access point to the Internet.
  29.