This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]