[Chicken-users] bit-set? seems to be buggy
Gambit: $ gsi -e '(display (bit-set? 1 2))(newline)' #t Chicken: $ csi -e '(display (bit-set? 1 2))(newline)' #f $ csi -v CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.0.3-st linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2011-12-11 on sn-e0692 (Linux) ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] bit-set? seems to be buggy
On Fri, Jan 06, 2012 at 11:38:11AM +0100, obscurolocon...@googlemail.com wrote: Gambit: $ gsi -e '(display (bit-set? 1 2))(newline)' #t Chicken: $ csi -e '(display (bit-set? 1 2))(newline)' #f Chicken's bit-set? is not from SRFI-60. It has a swapped argument order. See the manual: http://api.call-cc.org/doc/library/bit-set%3F If you want, you can use the SRFI-60 egg to get compatible behaviour: http://wiki.call-cc.org/eggref/4/srfi-60 (by the way, it would be nice if its author could put the docs in a wiki page so that api.call-cc.org can pick up on it) Cheers, Peter -- http://sjamaan.ath.cx -- The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music. -- Donald Knuth ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] bit-set? seems to be buggy
2012/1/6 Peter Bex peter@xs4all.nl: Chicken's bit-set? is not from SRFI-60. It has a swapped argument order. See the manual: http://api.call-cc.org/doc/library/bit-set%3F (by the way, it would be nice if its author could put the docs in a wiki page so that api.call-cc.org can pick up on it) It is probably easer to do it just like the rest of the Scheme world does it. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] bit-set? seems to be buggy
On Fri, Jan 06, 2012 at 12:12:57PM +0100, obscurolocon...@googlemail.com wrote: 2012/1/6 Peter Bex peter@xs4all.nl: Chicken's bit-set? is not from SRFI-60. It has a swapped argument order. See the manual: http://api.call-cc.org/doc/library/bit-set%3F (by the way, it would be nice if its author could put the docs in a wiki page so that api.call-cc.org can pick up on it) It is probably easer to do it just like the rest of the Scheme world does it. Agreed. However, it's too late now; changing this procedure's signature while maintaining backwards-compatibility is impossible. Cheers, Peter -- http://sjamaan.ath.cx -- The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music. -- Donald Knuth ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users