This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Variables not initialized when module is required?
This also works:
$ kawa -e '(require "/tmp/test.scm")'
java.lang.Error: in test
at test.run(test.scm:1)
at gnu.expr.ModuleBody.run(ModuleBody.java:44)
at gnu.expr.ModuleBody.run(ModuleBody.java:32)
at atInteractiveLevel$1.run(<string>:1)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:309)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:182)
at kawa.Shell.run(Shell.java:273)
at kawa.Shell.run(Shell.java:184)
at kawa.repl.processArgs(repl.java:192)
at kawa.repl.main(repl.java:767)
symbol
So basically, the goal is to have:
$ kawa /tmp/test.scm
be equivalent to the above.
--
--Per Bothner
per@bothner.com http://per.bothner.com/