This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Bug returning lambda(x.y)
- To: kawa at sourceware dot cygnus dot com
- Subject: Bug returning lambda(x.y)
- From: "Nic Ferrier" <nferrier at tapsellferrier dot co dot uk>
- Date: Thu, 02 Mar 2000 17:50:24 +0000
I think I've found a bug:
This doesn't compile properly:
(define (posbug p q)
(lambda (x .y)
(if (not y)
x
(car y))))
Because as soon as you eval it - like this:
((posbug "0" "1") 1 2)
an error crashes the VM.
The error is:
java.lang.VerifyError (at InteractiveLevel$lambda, method applyN
signature ([Ljava.lang.Object;)Ljava/lang/Object;) Accessing value
from unitinitialized register 2
There is a stack trace which is ending at:
atInteractiveLevel.apply0
If it is a bug I hope that helps (anymore info please contact me).
If it isn't a bug can someone explain to me what I've done wrong?
Nic Ferrier