This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Variables not initialized when module is required?
- From: alex mitchell <lexaay at gmail dot com>
- To: Per Bothner <per at bothner dot com>, "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Fri, 19 Feb 2010 15:56:15 +0800
- Subject: Re: Variables not initialized when module is required?
Yeah, the other way to do this, which is what I've been doing so that I can
work more easily inside Eclipse, is to create a file, runtest.scm, that just
does (require "test.scm"). This also avoids the problem.
But it would be great if this could be fixed, as I suspect it may solve the
other problem I posted recently, where I had variable declaration issues
when trying to compile to an applet.
Alex
On 2/18/10 4:04 PM, "Per Bothner" <per@bothner.com> wrote:
> 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.