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]

Creating closures in methods



Is the following supposed to work?


"
(define (external-func func)
  #f)
(define-simple-class <test> ()
  (var 50)
  ((*init*)
   (external-func (lambda ()
		    var))))
(define test (<test>))
"


Because it doesn't for me. I couldn't find anything in the documentation about this either.



Error is:
"
java.lang.VerifyError: (class: test, method: <init> signature: ()V) Expecting to find object/array on stack
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
"



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