[r6rs-discuss] fxcopy-bit

Abdulaziz Ghuloum aghuloum at cs.indiana.edu
Sat Sep 15 03:44:29 EDT 2007


The documents says:

   The fxcopy-bit procedure returns the result of replacing the
   fx_2^{th} bit of fx_1 by the fx_2^{th} bit of fx_3.

It should say the following instead:

   The fxcopy-bit procedure returns the result of replacing the
   fx_2^{th} bit of fx_1 by the value of fx_3.

Or, if the intention is to actually copy the fx_2^{th} bit,
then the restriction on the value of fx_3 should be removed and
the reference code changed to:

(let ([mask (fxarithmetic-shift-left 1 fx2)])
   (fxif mask fx3 fx1))

Aziz,,,

PS: Is there a set time for when we should stop posting these
bug reports?



More information about the r6rs-discuss mailing list