From: Keith Thompson <kst-u@mib.org>
Subject: Re: A curiosity...
Date: Fri, 05 Dec 2008 12:20:47 -0800
Date: 2008-12-05T12:20:47-08:00 [thread overview]
Message-ID: <lnprk6s7a8.fsf@nuthaus.mib.org> (raw)
In-Reply-To: 84d_k.82$Xt.59@newsfe13.iad
Hyman Rosen <hyrosen@mail.com> writes:
> Keith Thompson wrote:
>> Except that there's no guarantee in C that converting an int to void*
>> and back again will yield the original int value.
>
> There's a guarantee in your implementation's documentation.
Maybe. The result of converting an integer to a pointer type, or vice
versa, is implementation-defined, which means the implementation must
document it. It's not at all clear what level of detail is required,
but you can *probably* determine whether it works the way you want.
Which it might not.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
next prev parent reply other threads:[~2008-12-05 20:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 20:47 A curiosity mockturtle
2008-12-04 21:17 ` Adam Beneschan
2008-12-04 21:48 ` Hyman Rosen
2008-12-04 22:04 ` Ludovic Brenta
2008-12-04 22:10 ` Ludovic Brenta
2008-12-04 22:24 ` Hyman Rosen
2008-12-05 8:02 ` Samuel Tardieu
2008-12-05 11:51 ` Peter C. Chapin
2008-12-05 13:09 ` Martin Krischik
2008-12-05 15:15 ` Hyman Rosen
2008-12-06 13:26 ` Peter C. Chapin
2008-12-05 16:37 ` Keith Thompson
2008-12-04 22:19 ` Hyman Rosen
2008-12-05 9:03 ` Georg Bauhaus
2008-12-04 22:30 ` Randy Brukardt
2008-12-04 22:57 ` Hyman Rosen
2008-12-05 16:42 ` Keith Thompson
2008-12-05 16:57 ` Hyman Rosen
2008-12-05 20:20 ` Keith Thompson [this message]
2008-12-05 20:59 ` Adam Beneschan
2008-12-06 22:53 ` Hyman Rosen
2008-12-06 23:15 ` Gary Scott
2008-12-08 15:39 ` Hyman Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox