[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile starting state.
From: |
Stephen Compall |
Subject: |
Re: Guile starting state. |
Date: |
Sat, 13 Aug 2005 00:55:49 -0500 |
On Wed, 2005-08-10 at 17:55 -0400, R. Clayton wrote:
> There appears to be a difference between starting guile (1.6.7 on an x86
> debian
> testing system) with and without -c:
>
> $ guile
> guile> (match:substring (string-match "[0-9][0-9]" "bla987"))
> "98"
> guile> ^d
>
> $ guile -c '(display (match:substring (string-match "[0-9][0-9]"
> "bla987")))'
> ERROR: Unbound variable: match:substring
>
> What is the explanation for the difference?
In function top-repl, at /usr/share/guile/1.6/ice-9/boot-9.scm:3022:
(if (provided? 'regex)
(module-use! guile-user-module (resolve-interface '(ice-9 regex))))
This function is set up for a call in script.c if a -c or -s option is
not used.
top-repl makes this and other modifications to the environment (other
module loadings, signal handlers, etc) before, well, starting the REPL.
--
Stephen Compall
http://scompall.nocandysoftware.com/blog
signature.asc
Description: This is a digitally signed message part