From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.bugs Subject: bug#40744: guile-2.2.4 (integer-length 0) erroneously returns 0, not 1 Date: Thu, 15 Jul 2021 22:01:32 -0500 Message-ID: <87pmvjarn7.fsf@trouble.defaultvalue.org> References: <20200421130344.GA9369@LionPure> <20200425213350.GA10462@LionPure> <20200428200810.7d619d27@alma-ubu> <20200428204110.50e47ad0@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33744"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40744@debbugs.gnu.org To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= , Bengt Richter Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Jul 16 05:02:08 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4E76-0008bu-IY for guile-bugs@m.gmane-mx.org; Fri, 16 Jul 2021 05:02:08 +0200 Original-Received: from localhost ([::1]:60364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4E75-0002fy-AC for guile-bugs@m.gmane-mx.org; Thu, 15 Jul 2021 23:02:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4E70-0002fm-96 for bug-guile@gnu.org; Thu, 15 Jul 2021 23:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4E6z-0005EV-SY for bug-guile@gnu.org; Thu, 15 Jul 2021 23:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4E6z-00083u-Qs for bug-guile@gnu.org; Thu, 15 Jul 2021 23:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 16 Jul 2021 03:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40744 X-GNU-PR-Package: guile Original-Received: via spool by 40744-submit@debbugs.gnu.org id=B40744.162640449530957 (code B ref 40744); Fri, 16 Jul 2021 03:02:01 +0000 Original-Received: (at 40744) by debbugs.gnu.org; 16 Jul 2021 03:01:35 +0000 Original-Received: from localhost ([127.0.0.1]:50217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4E6Z-00083F-D5 for submit@debbugs.gnu.org; Thu, 15 Jul 2021 23:01:35 -0400 Original-Received: from defaultvalue.org ([45.33.119.55]:53102 ident=postfix) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4E6X-000837-Ka for 40744@debbugs.gnu.org; Thu, 15 Jul 2021 23:01:34 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id B56AD202FD; Thu, 15 Jul 2021 22:01:32 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 4BF8B14E48B; Thu, 15 Jul 2021 22:01:32 -0500 (CDT) In-Reply-To: <20200428204110.50e47ad0@alma-ubu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10145 Archived-At: 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