GNU bug report logs - #40744
guile-2.2.4 (integer-length 0) erroneously returns 0, not 1

Previous Next

Package: guile;

Reported by: Bengt Richter <bokr <at> bokr.com>

Date: Tue, 21 Apr 2020 13:05:01 UTC

Severity: normal

Merged with 40855

Full log


Message #30 received at 40744 <at> debbugs.gnu.org (full text, mbox):

From: Rob Browning <rlb <at> defaultvalue.org>
To: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>,
 Bengt Richter <bokr <at> bokr.com>
Cc: 40744 <at> debbugs.gnu.org
Subject: Re: bug#40744: guile-2.2.4 (integer-length 0) erroneously returns
 0, not 1
Date: Thu, 15 Jul 2021 22:01:32 -0500
Hmm, the zero result appears to be intentional, i.e. it's mentioned in
the examples here:

  https://www.gnu.org/software/guile/manual/guile.html#Arithmetic

and is also specified by Chez Scheme and SRFI-60:

  https://www.scheme.com/csug8/numeric.html
  https://srfi.schemers.org/srfi-60/srfi-60.html

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4




This bug report was last modified 3 years and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.