This is the mail archive of the kawa@sourceware.org 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]

Bug with let-values?


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



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