home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / std / cplus / 1987 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.0 KB  |  26 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!microsoft!wingnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: pointer comparisons
  5. Message-ID: <1993Jan06.194710.6913@microsoft.com>
  6. Date: 06 Jan 93 19:47:10 GMT
  7. Organization: Microsoft Corporation
  8. References: <1992Dec31.170223.21637@lpi.liant.com> <1993Jan05.003819.12515@microsoft.com> <1993Jan5.203237.28304@lpi.liant.com>
  9. Lines: 15
  10.  
  11. In article <1993Jan5.203237.28304@lpi.liant.com> pkt@lpi.liant.com (Scott Turner) writes:
  12. |Yes.  An _other_ object is distinct, not identical to the object with which
  13. |it shares storage.  For example, given
  14. |    int x[9];
  15. |then the bytes occupied by the objects x and x[2] overlap.
  16.  
  17. I still don't understand your [undefined] concepts of "distinctness"
  18. and "identity"
  19.  
  20. Granted that in this case x and x[0] are different objects, and share
  21. storage.  Yet x and &(x[0]) have identical addresses.  Likewise ANSI-C
  22. requires a struct and its first member to have identical addresses.
  23. So I still don't understand your [unstated] definitions of the terms
  24. you are using.
  25.  
  26.