bug#16464: + folding differs between compiler and interpreter

2014-01-16 Thread Mark H Weaver
tags 16464 notabug thanks Zefram writes: > The + procedure left-folds its arguments in interpreted code and > right-folds its arguments in compiled code. This may or may not be a > bug. [...] > R5RS and the Guile documentation are both silent about the order of > operations in cases like this

bug#16464: + folding differs between compiler and interpreter

2014-01-16 Thread Zefram
The + procedure left-folds its arguments in interpreted code and right-folds its arguments in compiled code. This may or may not be a bug. Obviously, with exact numbers the direction of folding makes no difference. But the difference is easily seen with flonums, as flonum addition is necessarily