[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/

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:

If you want, you can use the SRFI-60 egg to get compatible behaviour:

(by the way, it would be nice if its author could put the docs in a wiki
 page so that can pick up on it)

"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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]