🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #817

Re: Conversion to |void*| and back: LEGAL

#817
From: Ron Guilmette
Date: Wed, 23 Jan 1991 09:24
17 lines
1118 bytes
In article <27975414.50A8@tct.uucp> chip@tct.uucp (Chip Salzenberg) writes:
>Okay, here's another line of argument:
>
>ANSI C guarantees that any object pointer may be converted to |void *|
>and back, and that the result will be equal to the original pointer.
>The "Differences from ANSI C" section of the ARM (18.2) does not
>rescind that guarantee.  Therefore, it must still hold in C++.

That's a bad assumption.  I have already noted other ommisions from
the list in 18.2.  It is not a complete list.


-- 

// Ron Guilmette  -  C++ Entomologist
// Internet: rfg@ncd.com      uucp: ...uunet!lupine!rfg
// Motto:  If it sticks, force it.  If it breaks, it needed replacing anyway.
Technical Details
Message-ID: <3453@lupine.NCD.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!olivea!decwrl!infopiz!lupine!rfg
References: <278A3278.1241@tct.uucp> <70023@microsoft.UUCP> <27975414.50A8@tct.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!olivea!decwrl!infopiz!lupine!rfg
From: rfg@NCD.COM (Ron Guilmette)
Newsgroups: comp.std.c++
Subject: Re: Conversion to |void*| and back: LEGAL
Keywords: Sun, C++
Message-ID: <3453@lupine.NCD.COM>
Date: 23 Jan 91 09:24:34 GMT
References: <278A3278.1241@tct.uucp> <70023@microsoft.UUCP> <27975414.50A8@tct.uucp>
Organization: Network Computing Devices, Inc., Mt. View, CA
Lines: 17