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