[r6rs-discuss] fxdiv

leppie xacc.ide at gmail.com
Thu Dec 25 20:10:13 EST 2008


Hi

What should be the result of:

(fxdiv (least-fixnum) -1)

If the return value is not a fixnum then an assertion should be raised.

So here is what I have tested:

IronScheme:
raise assertion

Ikarus:
fails to do an overflow check and returns a negative number equal to 
(least-fixnum)

PLT & Ypsilon:
both returns a value outside fixnum range equal to (+ (greatest-fixnum) 1)

Any ideas which one is the correct behavior?

Cheers

leppie 




More information about the r6rs-discuss mailing list