From: Geert J. <in...@ko...> - 2013-09-23 16:51:05
|
I'm fairly busy currently, but I have put it on my list of things to check into, which I will do as soon as possible. Geert On Tuesday 17 September 2013 08:02:48 William S Fulton wrote: > Geert, > > Could you take a look at the Guile numeric handling when you have a > moment? The integers test is failing on Mac OSX 64 bit: > > checking testcase integers (with run test) under guile > Backtrace: > In unknown file: > ?: 0* [primitive-load "../schemerunme/integers.scm"] > In ../schemerunme/integers.scm: > 15: 1* (let (# # # # ...) (begin # # # ...) (begin # # # ...) ...) > 37: 2* (check-range unsigned-long-identity 0 unsigned-long-max) > 37: 3 (begin (let (# #) (if # #)) (let (# #) (if # #)) ...) > In unknown file: > ?: 4* (check-equality # unsigned-long-max) > ?: 5 (let (# #) (if # #)) > ?: 6* [unsigned-long-identity {-1}] > <unnamed port>: In procedure unsigned-long-identity in expression > (unsigned-long-identity unsigned-long-max): > <unnamed port>: Value out of range 0 to 18446744073709551615: -1 > make[1]: *** [integers.ctest] Error 1 > > I'm experimenting with the new Travis builds on this platform, so if > you need to try it out on these machines let me know. > > The c++ function overloading of numeric types is also not implemented > and might be related (the range checking and typecheck typemaps could > be less generic for the integer types): > > checking testcase overload_numeric under guile > ../../../Examples/test-suite/overload_numeric.i:36: Warning 509: > Overloaded method Nums::over(short) effectively ignored, > ../../../Examples/test-suite/overload_numeric.i:33: Warning 509: as it > is shadowed by Nums::over(signed char). > ../../../Examples/test-suite/overload_numeric.i:39: Warning 509: > Overloaded method Nums::over(int) effectively ignored, > ../../../Examples/test-suite/overload_numeric.i:33: Warning 509: as it > is shadowed by Nums::over(signed char). > ../../../Examples/test-suite/overload_numeric.i:45: Warning 509: > Overloaded method Nums::over(double) effectively ignored, > ../../../Examples/test-suite/overload_numeric.i:42: Warning 509: as it > is shadowed by Nums::over(float). > > This is a new test I put in after we noticed that float was > incorrectly rejecting infinity as a valid value in the scripting > languages. Porting Examples/test-suite/python/overload_numeric to > Guile would be helpful too. > > William |