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]

Bug: WrongArguments


Hi,

I guess there is something wrong with the tailcall-elimination.

Doing the following with kawa 1.6.70 and the option --full-tailcalls 
look a bit strange:
(define (f x) x)
(f 5)
5
(f 5 6)
5
(f)
java.lang.ArrayIndexOutOfBoundsException

compared to the behaviour without the option:

(define (f x) x)
(f 5)
5
(f)
gnu.mapping.WrongArguments: call to `f' has too few arguments (0; 
must be 1)
(f 5 6)
gnu.mapping.WrongArguments: call to `f' has too many arguments (2; 
must be 1)

regards,

Marcus

-------------------------------------------------------
Marcus Otto
Institute for Mathematics and Computer Science
Ludwigsburg Educational University
Reuteallee 46 - 71634 Ludwigsburg - Germany
phone: ++49 (0)7141/140-420
e-mail: otto_marcus@ph-ludwigsburg.de
-------------------------------------------------------


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