home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18489 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.6 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!kauri.vuw.ac.nz!robertd
  2. Newsgroups: comp.lang.c++
  3. Subject: Re: Is it possible to use 'delete this' ?
  4. Message-ID: <C000qE.D3J@comp.vuw.ac.nz>
  5. From: robertd@kauri.vuw.ac.nz (Robert Davies)
  6. Date: Tue, 29 Dec 1992 02:11:02 GMT
  7. Sender: news@comp.vuw.ac.nz (News Admin)
  8. References: <rmartin.725129268@thor> <BzqE5s.6Lr@comp.vuw.ac.nz> <rmartin.725581109@thor>
  9. Organization: Victoria University of Wellington
  10. Nntp-Posting-Host: kauri.vuw.ac.nz
  11. Lines: 26
  12.  
  13. rmartin@thor.Rational.COM (Bob Martin) writes:
  14. >robertd@kauri.vuw.ac.nz (Robert Davies) writes:
  15. >|rmartin@thor.Rational.COM (Bob Martin) writes:
  16. ..... stuff about "delete this".
  17.  
  18. The problem I had with Bob's first reply was that he didn't answer the
  19. question: is "delete this" legal.
  20.  
  21. I would also like to know the answer. It seems to work on all the compilers
  22. I have access to and I understand that Bjarne uses it. So I guess it is legal,
  23. but it would be nice to have a reference - or is it something the standards
  24. committee should explicitly include in the standard.
  25.  
  26. I think Bob's reply would have been much more helpful if it had started out
  27. with "yes", "no", or "not clear".
  28.  
  29. Then it would be appropriate to give a warning. Incidentally, is the warning
  30. about is causing difficulty to some compilers just a "gut feeling" or are
  31. there specific examples?
  32.  
  33. Bob's warning about "delete this" seems to apply to any use of "delete" by
  34. an entity that didn't do the corresponding "new". Otherwise there is always
  35. the risk that the "delete" will be applied to something not created by
  36. "new". Is this another safe programming rule?
  37.  
  38. Robert
  39.