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

Reply via email to