This is the mail archive of the guile-gtk@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [David Pirotte <david@altosw.be>] Re: guile problem



> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]