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]

Re: 'requre' under J2EE environment


Wen-Chun Ni wrote:

I've written some Java code implementing gnu.mapping.ProcedureN
that are "required" into scheme code, which are compiled into
Java class files.

That sounds wrong. You "require" a module, not a Procedure. When you require a class, Kawa imports bindings based on the public fields of the class. Implementing Procedure is neither here nor there: While Kawa compiles a module into a ModuleBody, which is does inherit from Procedure, you should not think of a module as a procedure.

A module is a set of bindings, plus optionally a "body"
that gets executed when it is required (if the required
lass is Runnable).

Current Java thread:
    at gnu.mapping.Symbol.getFunctionValue(Symbol.java:339)
    at gnu.expr.Interpreter.getSymbolProcedure(Interpreter.java:657)

I seem to remember seeing something like this recently, with a null constraint, but I'm not sure. In principle, the constraint should never be null. -- --Per Bothner per@bothner.com http://per.bothner.com/


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