🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5833

Re: Testing Equal Pointers (was: detecting invalid pointers)

#5833
From: Prescott K. Turner
Date: Mon, 27 Mar 1989 18:23
17 lines
1402 bytes
In article <375@sdti.SDTI.COM> turner@sdti.SDTI.COM (I) write:
>But STANDARD C PROVIDES NO WAY at all to tell if two pointers point to the
>same object!
On second thought, the correct interpretation of the proposed standard is
probably that comparison for equality/inequality will always work in
those situations where the other relational pointer comparisons are
guaranteed to work.

>Why is this dismal situation reflected in the pANS?
Since compilers for MS-DOS and other tricky architectures will compare
pointers correctly that point within the same aggregate object, the
situation is not dismal.  Sorry for the flame.
--
Prescott K. Turner, Jr.
Software Development Technologies, Inc.
P.O. Box 366, Sudbury, MA 01776 USA         (508) 443-5779
UUCP: ...{harvard,mit-eddie}!sdti!turner    Internet: turner@sdti.sdti.com
Technical Details
Message-ID: <376@sdti.SDTI.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!apollo!mrst!sdti!turner
References: <1989Mar21.085704.15894@ateng.ateng.com> <16039@cup.portal.com> <375@sdti.SDTI.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!apollo!mrst!sdti!turner
From: turner@sdti.SDTI.COM (Prescott K. Turner)
Newsgroups: comp.std.c
Subject: Re: Testing Equal Pointers (was: detecting invalid pointers)
Summary: sorry for the flame
Message-ID: <376@sdti.SDTI.COM>
Date: 27 Mar 89 18:23:00 GMT
References: <1989Mar21.085704.15894@ateng.ateng.com> <16039@cup.portal.com> <375@sdti.SDTI.COM>
Reply-To: turner@sdti.UUCP (0006-Prescott K. Turner, Jr.)
Organization: Software Development Technologies, Sudbury MA
Lines: 17