|
From: | GNU bug Tracking System |
Subject: | bug#47538: closed (ice-9 regex procedures not found when trying to use from r7rs-style defined library) |
Date: | Sun, 02 May 2021 13:51:02 +0000 |
Your message dated Sun, 02 May 2021 15:50:00 +0200 with message-id <87mttdjldj.fsf@igalia.com> and subject line Re: bug#47538: ice-9 regex procedures not found when trying to use from r7rs-style defined library has caused the debbugs.gnu.org bug report #47538, regarding ice-9 regex procedures not found when trying to use from r7rs-style defined library to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 47538: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47538 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: ice-9 regex procedures not found when trying to use from r7rs-style defined library Date: Thu, 1 Apr 2021 10:06:39 +0300 I'm running version 3.0.5, installed through debian testing branch package managerIt also works if I try using regexp from application instead of module; eg if I change foo-runner.scm toIt seems using other libraries is fine; eg it works if I change foo.scm toRunning this with guile -L . foo-runner.scm, yields errorfoo.scm:Consider filesfoo-runner.scm:
(import (foo)
(scheme write))
(display (bar))
(define-library (foo)
(import
(scheme base)
(ice-9 regex))
(export bar)
(begin
(define (bar)
(make-regexp "a"))))
foo.scm:1:0: In procedure bar:
Unbound variable: make-regexp
(define-library (foo)
(import
(scheme base)
(ice-9 match))
(export bar)
(begin
(define (bar)
(match "a" (_ "bar")))))
(import (foo)
(scheme write)
(ice-9 regex))
(display (make-regexp "a"))
--- End Message ---
--- Begin Message ---Subject: Re: bug#47538: ice-9 regex procedures not found when trying to use from r7rs-style defined library Date: Sun, 02 May 2021 15:50:00 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Hi, On Thu 01 Apr 2021 09:06, Arvydas Silanskas <nma.arvydas.silanskas@gmail.com> writes: > foo.scm: > (define-library (foo) > (import > (scheme base) > (ice-9 regex)) > (export bar) > > (begin > (define (bar) > (make-regexp "a")))) The issue AFAIU is that make-regexp is part of (guile), and not exported by (ice-9 regex). You would need to add (only (guile) make-regexp) to your import set. I know it's somewhat terrible but perhaps in the near future we will be able to replace this regexp support with something more consistent. Please reopen if I misunderstood the bug. Cheers, Andy
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |