[r6rs-discuss] [Formal] bitwise-bit-count should return -ve on -ve argument.
bjh21 at bjh21.me.uk
Mon Apr 23 18:41:28 EDT 2007
On Sat, 21 Apr 2007, John Cowan wrote:
> Ben Harris scripsit:
> > This problem can be
> > dodged by having bitwise-bit-count return the number of set bits mod0
> > infinity, or more prosaically, by returning the number of set bits in
> > a non-negative argument, and _minus_ the number of clear bits in a
> > negative one.
> I think this is a good idea for the reasons given, but the phrase
> "mod0 infinity" should not be used, as Scheme has no exact infinity.
Indeed. That was intended to be a pseudo-mathemtical rationale for the
proposed arrangement, not proposed wording for the report.
More information about the r6rs-discuss