On Sun, May 31, 2015 at 05:35:44PM +0200, Peter Bex wrote: > Hi all, > > I noticed that the types.db change we committed in > 99d43101f8bd2766f8ac64332dc19c2a6ee16d4c introduced > a small problem: (=) and (= 1) will result in a runtime > error when used in the interpreter (which is correct > according to R5RS), but when compiled it will now > return #t. The same is true for <, <=, > and >=. > > The attached patch removes these specializations, > for CHICKEN 4 and for CHICKEN 5.
Hm, actually, I just noticed that in CHICKEN 4 this will *not* cause a runtime error, which is probably why we added the rewrites. This is not correct according to R5RS. It would be a backward incompatible change, if anyone is relying on this behaviour, so I think it's probably best to leave this the way it is in the 4 branch and only apply the patch to the chicken-5 branch. Cheers, Peter
signature.asc
Description: Digital signature
_______________________________________________ Chicken-hackers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-hackers
