Article View: comp.std.c++
Article #1172Re: Pointer comparisons
From: Jim Adcock
Date: Mon, 28 Dec 1992 17:52
Date: Mon, 28 Dec 1992 17:52
19 lines
1091 bytes
1091 bytes
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?
Technical Details
Message-ID:
<1992Dec28.175218.15539@microsoft.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!microsoft!hexnut!jimadReferences:
<1992Dec19.001851.22116@microsoft.com> <1992Dec23.182456.17185@lucid.com> <1992Dec24.200201.25709@microsoft.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!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