This is the mail archive of the kawa@sourceware.cygnus.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 returning lambda(x.y)


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

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