home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18238 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!ark
  2. From: ark@alice.att.com (Andrew Koenig)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What is this CFRONT 3.0 warning message trying to tell me?
  5. Message-ID: <24450@alice.att.com>
  6. Date: 19 Dec 92 16:00:36 GMT
  7. Article-I.D.: alice.24450
  8. References: <1992Dec15.183649.20994@delfin.com> <BzBzL2.5rx@apollo.hp.com> <1992Dec17.184841.4563@cadkey.com>
  9. Reply-To: ark@alice.UUCP ()
  10. Organization: AT&T Bell Laboratories, Murray Hill NJ
  11. Lines: 13
  12.  
  13. In article <1992Dec17.184841.4563@cadkey.com> erics@cadkey.com (Eric Smith) writes:
  14.  
  15. > Isn't there a problem with this code, since it checks to see if this
  16. > is the same as the right hand side by pointer comparison?  Aren't
  17. > pointer comparisons only defined if they point within the same object
  18. > or array of objects?
  19.  
  20. Pointer comparisons for equality and inequality work even if the pointers
  21. don't point within the same objects.  The other four relationals are
  22. more constrained.
  23. -- 
  24.                 --Andrew Koenig
  25.                   ark@europa.att.com
  26.