This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
[PATCH] boot-9 loading
- To: guile at sourceware dot cygnus dot com
- Subject: [PATCH] boot-9 loading
- From: "C. Ray C." <crayc at 206 dot 31 dot 63 dot 15>
- Date: Wed, 1 Mar 2000 12:28:52 -0600
OK, I figured out that the problem I was having with hobbit-created
executables was because boot-9 was getting loaded twice. The docs state
that you need to load it manually if you don't call gh_repl(), which
is not true (apparently somebody fixed the problem without updating
the docs).
Attached is a patch which updates guile-doc.
Index: guile-doc/ref/gh.texi
===================================================================
RCS file: /cvs/guile/guile/guile-doc/ref/gh.texi,v
retrieving revision 1.14
diff -u -r1.14 gh.texi
--- gh.texi 1998/10/27 06:09:47 1.14
+++ gh.texi 2000/03/01 18:17:46
@@ -121,39 +121,8 @@
@code{gh_enter()} after Guile has been started up.
@end deftypefun
-Please note that @code{gh_enter} does not load @file{ice-9/boot-9.scm}, which
-contains much of Guile's basic functionality, including some necessary
-parts of Scheme. This is a limitation, and it is only so because the
-basic Scheme language functions have not yet been separated from the
-higher-level functionality provided by the @file{ice-9/boot-9.scm} module.
-
-Here is a note from the Guile mailing list describing how to get around
-this problem if you want to run some Guile code before you invoke
-@code{gh_repl()}. It is a temporary solution, and a better way of
-handling the loading of @file{ice-9/boot-9.scm} will soon be introduced.
-
-@example
-The next problem is that boot-9.scm may only be executed once, otherwise
-you get a stack overflow. When entering the read-eval-print-loop (repl)
-with gh_repl, guile loads boot-9.scm. Thus, if you did load boot-9.scm
-yourself and then later enter the repl, guile will abort with a stack
-overflow.
-
-If you look a little into the guile mailing list archives, you can find a
-temporary solution to the problem which I posted quite some time ago. It's
-a trivial fix:
-1) rename boot-9.scm into boot-9-tail.scm
-2) create a new boot-9.scm, which only contains the following code:
-
-(if (not (defined? 'provide))
- (primitive-load-path "ice-9/boot-9-tail.scm"))
-
-With this modification, boot-9.scm can be read several times.
-@end example
-
Also note that you can use @code{gh_repl} inside @code{gh_enter} if you
want the program to be controled by a Scheme read--eval--print--loop.
-Invoking @code{gh_repl} will load @file{ice-9/boot-9.scm}.
@end deftypefun