This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Re: [David Pirotte <david@altosw.be>] Re: guile problem
- To: David Pirotte <david at altosw dot be>
- Subject: Re: [David Pirotte <david@altosw.be>] Re: guile problem
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 05 Jan 2000 20:36:18 +0100
- Cc: guile-gtk at sourceware dot cygnus dot com
- References: <m3bt70774a.fsf@savonarola.red-bean.com>
> I have the "strange" following behavior:
>
> david@faust:~/alto/projects/guile 6 $ ./ggl.scm
> ERROR: Unbound variable: string-match
> [...]
> Although:
>
> david@faust:~/alto/projects/guile 11 $ guile
> guile> (load "ggl.scm")
> guile> (ggl)
>
> works perfectly fine!
You need to put a
(use-modules (ice-9 regex))
at the start of ggl.scm. Files that are loaded from the prompt run in
a different environment than the one loaded via the "-s" command line
option. From the prompt, the (ice-9 regex) module is already visible.
- Marius