This is the mail archive of the kawa@sources.redhat.com 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]

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


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