Article View: comp.std.c++
Article #1412Re: pointer comparisons
From: Jim Adcock
Date: Wed, 06 Jan 1993 19:47
Date: Wed, 06 Jan 1993 19:47
14 lines
1076 bytes
1076 bytes
In article <1993Jan5.203237.28304@lpi.liant.com> pkt@lpi.liant.com (Scott Turner) writes: |Yes. An _other_ object is distinct, not identical to the object with which |it shares storage. For example, given | int x[9]; |then the bytes occupied by the objects x and x[2] overlap. I still don't understand your [undefined] concepts of "distinctness" and "identity" Granted that in this case x and x[0] are different objects, and share storage. Yet x and &(x[0]) have identical addresses. Likewise ANSI-C requires a struct and its first member to have identical addresses. So I still don't understand your [unstated] definitions of the terms you are using.
Technical Details
Message-ID:
<1993Jan06.194710.6913@microsoft.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!microsoft!wingnut!jimadReferences:
<1992Dec31.170223.21637@lpi.liant.com> <1993Jan05.003819.12515@microsoft.com> <1993Jan5.203237.28304@lpi.liant.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!wingnut!jimad From: jimad@microsoft.com (Jim Adcock) Subject: Re: pointer comparisons Message-ID: <1993Jan06.194710.6913@microsoft.com> Date: 06 Jan 93 19:47:10 GMT Organization: Microsoft Corporation References: <1992Dec31.170223.21637@lpi.liant.com> <1993Jan05.003819.12515@microsoft.com> <1993Jan5.203237.28304@lpi.liant.com> Lines: 15