Thank you very much for replying, and the help.<br><br>I added to snow script:<br><br>gambit-gsi) exec "${PROGRAM_gambit}" -:dpri1- -e '(begin (include "'"${SNOW_MACROS}"'") (load-program* "'"${SCRIPT_FILE}"'") (error "stay in gsi"))' "$@
<br><br>and that gives me the gsi prompt when run with SNOW_HOST=gambit-gsi.  but I cannot see any symbol defined in the program loaded.  For example using the simple.scm and power.scm from the Snow doc:<br><br>$ snow -- 
simple.scm <br>*** ERROR IN (string)@1.27 -- stay in gsi<br>> cube<br>*** ERROR IN (stdin)@1.1 -- Unbound variable: cube<br>1> ,t<br>> simple:cube<br>*** ERROR IN (stdin)@3.1 -- Unbound variable: simple:cube<br>1> 
<br><br>what is the correct way to reference cube in package simple?<br><br>I also got error when trying to use srfi1/v1.<br><br>$ cat foo.scm <br>(package* foo/v1.0.0<br>    (require: srfi1/v1))<br><br>(write (iota 10))<br>
(newline)<br><br>$ snow -- foo.scm <br>*** SNOW ERROR -- package form syntax error (filename= "/home/qta/.snow/v1.1.1/pack/srfi1/v1.0.15/snow/srfi1.scm")<br>*** ERROR IN (string)@1.30 -- Ill-formed procedure call
<br>> <br><br> <br>Thanks,<br>Quan<br><br><div><span class="gmail_quote">On 9/11/07, <b class="gmail_sendername">andrew cooke</b> <<a href="mailto:andrew@acooke.org">andrew@acooke.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>there's a reply to an email of mine just a few days ago that describes how<br>to do this (Debugging Gambit w Snow, James Long).<br><br>i couldn't get the advice in that email to work.  include-cd* should have<br>
been include*-cd but then i got another error.  but with a little work you<br>might be able to get it to run ok.<br><br>what i did instead, which was also mentioned in that email, was change the<br>bash script that starts snow so that a repl starts once the snow script
<br>has an error.  it's pretty clear what to do (search for gambit in the<br>script and replace the command line options after reading the gambit<br>docs).<br><br>i have:<br>...<br>       gambit) exec "${PROGRAM_gambit}" -:d- -e '(begin (include
<br>"'"${SNOW_MACROS}"'") (load-program* "'"${SCRIPT_FILE}"'") (exit))'<br>"$@"<br>#       gambit) echo "poot"<br>#       gambit) exec "${PROGRAM_gambit}" -:dpri1- -e '(begin (include
<br>"'"${SNOW_MACROS}"'") (load-program* "'"${SCRIPT_FILE}"'") (exit))' "$@"<br>...<br>and i guess you want something similar to the third line, but without (exit).
<br><br>in other words - there seems to be no simple or documented solution, you<br>just have to hack the code.<br><br>andrew<br><br><br>> Hi,<br>><br>> It's probably something simple, but I just couldn't figure out.  How can I
<br>> load snow package into gambit interactive repl?<br>><br>> Thanks,<br>> Quan<br>> _______________________________________________<br>> Gambit-list mailing list<br>> <a href="mailto:Gambit-list@iro.umontreal.ca">
Gambit-list@iro.umontreal.ca</a><br>> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>><br><br><br></blockquote></div><br>