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