This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
define-namespace in compiled files
- From: Chris Dean <Chris dot Dean at sokitomi dot com>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 29 Apr 2003 16:05:34 -0700
- Subject: define-namespace in compiled files
I'm unable to use define-namespace from a compiled file. However, when
running interactively it works fine.
For example, if we compile this code:
(define-namespace Long "class:java.lang.Long")
(Long:new 10)
and run it we get:
gnu.mapping.UnboundSymbol: Unbound symbol Long:new
at gnu.expr.Interpreter.getDefaultSymbolValue(Interpreter.java:622)
at gnu.expr.Interpreter.getSymbolProcedure(Interpreter.java:639)
at Foo2.apply(Foo2.scm:3)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:239)
at gnu.expr.ModuleBody.runAsMain(ModuleBody.java:95)
at Foo2.main(Foo2.scm)
Does this work for others?
Regards,
Chris Dean