GNU bug report logs - #40584
R7RS string-for-each does not work two or more strings on its argument

Previous Next

Package: guile;

Reported by: OKUMURA Yuki <mjt <at> cltn.org>

Date: Sun, 12 Apr 2020 19:55:02 UTC

Severity: normal

Tags: patch

Done: lloda <lloda <at> sarc.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40584 in the body.
You can then email your comments to 40584 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#40584; Package guile. (Sun, 12 Apr 2020 19:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to OKUMURA Yuki <mjt <at> cltn.org>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sun, 12 Apr 2020 19:55:02 GMT) Full text and rfc822 format available.

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

From: OKUMURA Yuki <mjt <at> cltn.org>
To: bug-guile <at> gnu.org
Subject: R7RS string-for-each does not work two or more strings on its argument
Date: Mon, 13 Apr 2020 04:38:58 +0900
Hi,

Actually it's my own bug but let me report here: (scheme base) lacks
implementation for string-for-each thus following code does not work;

(import (scheme base))

(string-for-each
  (lambda (e f) 'ok)
  "01234"
  "slas")

Please note that we already have incompatible string-for-each for
SRFI-13 and R6RS.
(It seems current (scheme base) uses SRFI-13 one)
R7RS for-each (and map) procedures allow different length of
collection as arguments.

Checked on 2b4e45ca1b89a942200b7b9f46060dddc44d2876




Information forwarded to bug-guile <at> gnu.org:
bug#40584; Package guile. (Fri, 17 Apr 2020 21:10:01 GMT) Full text and rfc822 format available.

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

From: Mark H Weaver <mhw <at> netris.org>
To: OKUMURA Yuki <mjt <at> cltn.org>
Cc: 40584 <at> debbugs.gnu.org
Subject: Re: bug#40584: R7RS string-for-each does not work two or more strings
 on its argument
Date: Fri, 17 Apr 2020 17:07:14 -0400
OKUMURA Yuki <mjt <at> cltn.org> wrote:
> Actually it's my own bug but let me report here: (scheme base) lacks
> implementation for string-for-each thus following code does not work;
> 
> (import (scheme base))
> 
> (string-for-each
>   (lambda (e f) 'ok)
>   "01234"
>   "slas")
> 
> Please note that we already have incompatible string-for-each for
> SRFI-13 and R6RS.
> (It seems current (scheme base) uses SRFI-13 one)
> R7RS for-each (and map) procedures allow different length of
> collection as arguments.
> 
> Checked on 2b4e45ca1b89a942200b7b9f46060dddc44d2876

For the record, the version of R7RS 'string-for-each' that I implemented
for Guile many years ago, in the 'r7rs-wip' branch of Guile's git
repository (not to be confused with 'wip-r7rs'), does not have this bug:

  https://git.savannah.gnu.org/cgit/guile.git/tree/module/scheme/base.scm?h=r7rs-wip&id=2d76447bda2f3d61c94d80b3b78732648a0a511d#n221

I'm not sure why Andy chose not to use my work.

      Mark




Information forwarded to bug-guile <at> gnu.org:
bug#40584; Package guile. (Wed, 12 May 2021 21:04:01 GMT) Full text and rfc822 format available.

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

From: Taylan Kammer <taylan.kammer <at> gmail.com>
To: 40584 <at> debbugs.gnu.org
Cc: Mark H Weaver <mhw <at> netris.org>, OKUMURA Yuki <mjt <at> cltn.org>
Subject: R7RS string-for-each does not work two or more strings on its argument
Date: Wed, 12 May 2021 23:03:25 +0200
[Message part 1 (text/plain, inline)]
Attached is a simple patch to use Mark's implementation
within the current (scheme base) module.

- Taylan
[0001-Fix-scheme-base-string-for-each.patch (text/plain, attachment)]

Added tag(s) patch. Request was from Taylan Kammer <taylan.kammer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 15 May 2021 17:48:01 GMT) Full text and rfc822 format available.

Reply sent to lloda <lloda <at> sarc.name>:
You have taken responsibility. (Fri, 29 Sep 2023 17:02:02 GMT) Full text and rfc822 format available.

Notification sent to OKUMURA Yuki <mjt <at> cltn.org>:
bug acknowledged by developer. (Fri, 29 Sep 2023 17:02:02 GMT) Full text and rfc822 format available.

Message #18 received at 40584-done <at> debbugs.gnu.org (full text, mbox):

From: lloda <lloda <at> sarc.name>
To: 40584-done <at> debbugs.gnu.org
Subject: ...
Date: Fri, 29 Sep 2023 19:01:14 +0200
Patch applied in 3243d96bb5b9658f08847a7073fe6c0b2ccab6be.

Thanks,

  Daniel






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 28 Oct 2023 11:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 174 days ago.

Previous Next


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