home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: 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
-
- 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.
-
-