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]

fluid-let problem


Hi,

I encountered the following problem:

#|kawa:1|# (define x 1)
#|kawa:2|# (define (f y) (+ x y))
#|kawa:3|# (f 1)
2
#|kawa:4|# (fluid-let ((x 2)) (f 1))
java.lang.Error: popType called with empty stack atInteractiveLevel.apply(gnu.mapping.CallContext)void
        at gnu.bytecode.CodeAttr.popType(CodeAttr.java:205)
        at gnu.bytecode.CodeAttr.emitStore(CodeAttr.java:1059)
        at gnu.bytecode.CodeAttr.emitTryEnd(CodeAttr.java:1796)
        at gnu.expr.FluidLetExp.compile(FluidLetExp.java:55)
        at gnu.expr.Expression.compileNotePosition(Expression.java:82)
        at gnu.expr.Expression.compileWithPosition(Expression.java:69)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1331)
        at gnu.expr.Compilation.addClass(Compilation.java:1485)
        at gnu.expr.Compilation.compile(Compilation.java:783)
        at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:54)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:166)
        at kawa.Shell.run(Shell.java:232)
        at kawa.Shell.run(Shell.java:180)
        at kawa.Shell.run(Shell.java:167)
        at kawa.Shell.run(Shell.java:154)
        at kawa.repl.main(repl.java:610)

I know Khairul Azhar's previous problem was solved, but this is 
supposed to be simpler. I am using the most updated CVS version.
Thanx!


Wen-Chun Ni


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