🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2520

Re: Frustrated trying to be portable

#2520
From: Doug Gwyn
Date: Mon, 04 Mar 1991 17:02
8 lines
921 bytes
In article <15938.27d2c9d3@levels.sait.edu.au> xtdn@levels.sait.edu.au writes:
>> for some architectures the C run-time implementation
>> may trap on an attempt to compare two pointers to different objects.
>Does this include == and !=, or just the other inequalities?

The C standard requires that the exact equality test work in such a case;
X3J11 was willing to require the additional "normalization" of pointers
for that case, but not for general relational tests of pointers.
Technical Details
Message-ID: <15383@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn
References: <N4Q94O2@xds13.ferranti.com> <15367@smoke.brl.mil> <15938.27d2c9d3@levels.sait.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: Frustrated trying to be portable
Message-ID: <15383@smoke.brl.mil>
Date: 4 Mar 91 17:02:51 GMT
References: <N4Q94O2@xds13.ferranti.com> <15367@smoke.brl.mil> <15938.27d2c9d3@levels.sait.edu.au>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 8