home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13034 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  934 b 

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!allegra!alice!ark
  2. From: ark@alice.att.com (Andrew Koenig)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Destruction of temporaries
  5. Message-ID: <23583@alice.att.com>
  6. Date: 28 Aug 92 19:07:06 GMT
  7. References: <MCGRANT.92Aug26232410@rascals.stanford.edu> <23563@alice.att.com> <rmartin.715004480@thor>
  8. Reply-To: ark@alice.UUCP ()
  9. Organization: AT&T Bell Laboratories, Murray Hill NJ
  10. Lines: 12
  11.  
  12. In article <rmartin.715004480@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
  13.  
  14. > It is in these cases where I would be perfectly happy if the compiler
  15. > issued a warning, or even an error.
  16.  
  17. Which cases?  I don't know how to write a compiler smart enough to
  18. distinguish the innocent cases from the guilty ones.  Surely you're
  19. not suggesting a warning every time you call a function that returns
  20. a pointer!
  21. -- 
  22.                 --Andrew Koenig
  23.                   ark@europa.att.com
  24.