Bug with let-values?

Dominique Boucher dominique.boucher@nuecho.com
Fri Oct 7 18:17:00 GMT 2005


Hi,

I think I found a bug w.r.t. let-values and the named-let form. If I enter
the following in the interpreter:

(let loop () 
   (let-values (((x y z) (values 1 2 3))) 
     (loop)))

I get:

java.lang.NullPointerException
        at
kawa.standard.call_with_values.callWithValues(call_with_values.java:12)
        at atInteractiveLevel$44.loop(<stdin>:3)
        at atInteractiveLevel$44.run(<stdin>:3)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:229)
        at kawa.Shell.run(Shell.java:226)
        at kawa.Shell.run(Shell.java:172)
        at kawa.Shell.run(Shell.java:159)
        at kawa.repl.main(repl.java:673)

However, if  I move the call to 'loop' outside the let-values form,
everything is fine.

Note that this does not seem to be a bug specific to Kawa 1.8, I get the
same error with Kawa 1.7.91 and older versions.

Regards,

Dominique Boucher




More information about the Kawa mailing list