[racket] Bug with equal? and bit-vectors

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Feb 24 17:13:48 EST 2015

Hi Eric,

I vaguely remember this bug being fixed some time ago,
and since I get #f on here on version 6.1.1.8 I suspect
you can fix the problem by upgrading.

Which version of Racket do you use?

/Jens Axel


2015-02-24 23:01 GMT+01:00 Eric Dong <yd2dong at uwaterloo.ca>:
> It seems that bit-vectors have a really weird bug, where short bit-vectors
> that aren't equal will often return true when tested with equal?.
>
> Here's a trivial example:  http://pasterack.org/pastes/35137
>
> Is this a known bug? It shouldn't be hard to fix; the equality tester just
> needs to, umm, do its thing properly? The bug is very annoying and caused a
> lot of headache in a certain application of mine, since the false equality
> does things like breaking hashtables unexpectedly, etc.
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>



-- 
--
Jens Axel Søgaard


Posted on the users mailing list.