[plt-scheme] eq-hash-code

From: Mark Engelberg (mark.engelberg at gmail.com)
Date: Tue Oct 7 19:41:58 EDT 2008

Ok, I was forgetting that eq? doesn't necessarily return true for
large equal numbers.

Just out of curiosity, what are the odds that two structs which are
not eq? return the same eq-hash-code?

--Mark

On Tue, Oct 7, 2008 at 4:35 PM, Jon Zeppieri <zeppieri at gmail.com> wrote:
> On Tue, Oct 7, 2008 at 7:27 PM, Mark Engelberg <mark.engelberg at gmail.com> wrote:
>>
>> But it is always true that (= k j) implies (eq? k j) purely by
>> definition of = and eq?.
>
> But that's not true.
> The text you quoted is basically saying (in implementation terms),
> that the result will always be a fixnum.
>


Posted on the users mailing list.