Hi,
I've just realized that "normal" Chicken integers are 31 bits wide:
csi> (inexact->exact 1073741824)
[ nasty error ]
csi> (inexact->exact 1073741823)
1073741823
csi> (/ (log 1073741824) (log 2))
30.0
Wider integers are promoted to flonums. This is somewhat undesirable
when interfacing to C libraries.
Is there a native-integer type (like in OCaml)? Since the SRFI-4 vectors
have exact 8, 16 and 32-bit integer elements, it might make sense to
have native integers too...
Cheers,
Dan
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users