GNU bug report logs - #76544
quasi-quote "ooo" pattern not work

Previous Next

Package: guile;

Reported by: Jinn Suu <js42007t <at> gmail.com>

Date: Tue, 25 Feb 2025 10:12:01 UTC

Severity: normal

To reply to this bug, email your comments to 76544 AT debbugs.gnu.org.

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#76544; Package guile. (Tue, 25 Feb 2025 10:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jinn Suu <js42007t <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Tue, 25 Feb 2025 10:12:02 GMT) Full text and rfc822 format available.

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

From: Jinn Suu <js42007t <at> gmail.com>
To: "bug-guile <at> gnu.org" <bug-guile <at> gnu.org>
Subject: quasi-quote "ooo" pattern not work
Date: Tue, 25 Feb 2025 05:50:11 +0000
[Message part 1 (text/plain, inline)]
Hello,

I encountered some errors with pattern matching:


  1.
For quasi-quote, the "ooo" pattern including "..." does not work. I looked at source code match-upstream.scm and perhaps it has not been implemented for quasi-quote cases??

(use-modules (ice-9 match))
(match '(1 2 3)
  (`(,a ,b ...) b)
  )



  1.
There are some conflicts within ice-9 modules themselves. For example occam-channel.scm causes predicate match to fail:

(use-modules (ice-9 match))
(match 9 ((? odd? a) a)) => 9
(use-modules (ice-9 match) (ice-9 occam-channel))
(match 9 ((? odd? a) a)) => conflict with occam-channel library


Please primarily focus on question 1.

Thanks!
[Message part 2 (text/html, inline)]

This bug report was last modified 6 days ago.

Previous Next


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