home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / cplus / 1929 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.0 KB  |  30 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!microsoft!hexnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: Pointer comparisons
  5. Message-ID: <1992Dec28.175218.15539@microsoft.com>
  6. Date: 28 Dec 92 17:52:18 GMT
  7. Organization: Microsoft Corporation
  8. References: <1992Dec19.001851.22116@microsoft.com> <1992Dec23.182456.17185@lucid.com> <1992Dec24.200201.25709@microsoft.com>
  9. Lines: 19
  10.  
  11. In article <1992Dec24.200201.25709@microsoft.com> jimad@microsoft.com (Jim Adcock) writes:
  12. ||Does anything go for A's.  E.g.
  13. ||
  14. ||    void f() {
  15. ||        A a1, a2 ;  // can &a1==&a2 
  16. ||        ... ; 
  17. ||        }
  18. |
  19. |Of course not!  ARM clearly requires members within a labeled public/private/
  20. |protected section to be ordered with later members having "higher" addresses.
  21.  
  22. Sorry -- to much eggnog -- I misread the question.
  23.  
  24. Let me restate the question as an answer.
  25.  
  26. Does the ARM anywhere say that two pointers of the same type to two different 
  27. objects of the same type not in the same array must compare not equal?  
  28.  
  29. If not then what does the ARM say of any such comparison?
  30.