[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] bit-set? seems to be buggy
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] bit-set? seems to be buggy |
Date: |
Fri, 6 Jan 2012 11:41:36 +0100 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, Jan 06, 2012 at 11:38:11AM +0100, address@hidden 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