[plt-scheme] Bit manipulation in PLT Scheme

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Mar 16 12:23:32 EST 2006

On Mar 16, Matthew Flatt wrote:
> At Wed, 15 Mar 2006 19:53:58 +0000, "Paulo J. Matos" wrote:
> > How can I know when I have a 30 or 62 bit fixnum then?
> There's no simple way to tell, currently.


  (eq? (expt 2 35) (expt 2 35))


And related to that -- it seems that something like a `fixnum?' or
`most-positive-fixnum' would be useful for bit-manipulation cases and
foreign interaction...

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.