[Larceny-users] this doesn't seem right, does it?

Andreas Huber andi at beyond-aggravated.com
Thu Apr 5 01:18:04 EDT 2007


(define (plus-1-a n) (+ n 1))
(plus-1-a 4294967293)
=> 2

(define (plus-1-b n) (+ 1 n))
(plus-1-b 4294967293)
=> 4294967294

is this some fixnum-add-optimization gone wrong?

-- Andreas




More information about the Larceny-users mailing list