From -2162120279954043512
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,e94695845965b249
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-12-09 21:25:05 PST
Newsgroups: comp.std.c++
Path: sparky!uunet!microsoft!hexnut!jimad
From: jimad@microsoft.com (Jim Adcock)
Subject: Re: Zero-length structures and pointer comparisons
Message-ID: <1992Dec09.215615.25752@microsoft.com>
Date: 09 Dec 92 21:56:15 GMT
Organization: Microsoft Corporation
References: <1992Dec8.103218.27689@lth.se> <1992Dec8.173855.18153@meaddata.com> <1992Dec9.075125.22405@lth.se>
Lines: 14

In article <1992Dec9.075125.22405@lth.se> dag@bellman.control.lth.se (Dag Bruck) writes:
|>|> 	p != q  <=>  long(p) > long(q)  |  long(p) < long(q)
|>
|>..... It is usually easy to convert
|>between pointers and memory addresses for a specific case, but that
|>conversion should be implementation dependent. 
|
|I repeat again: the result of the comparison may be implementation
|dependent, all I want is that it exists.

It does exist in implementation dependent manners on all systems where
it could reasonably exist.  On other machines you just have to take
a different approach.



