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]
Other format: [Raw text]

Re: kawa 1.6.98 problem


Dr. M. Luedde wrote:
> Hello! 
> 
> The following code yields a "java.lang.Error: attempting to push dead
> variable" on kawa version 1.6.98 (precompiled jar), java version
> "1.3.1_02".
> 
> Any ideas?
> 
> Thanks, Mirko. 
> 
> (define (halves! X)
>   (define (f y z)
>     (if (null? z) y
> 	(if (null? (cdr z)) (cdr y)
> 	    (f (cdr y) (cdr (cdr z))))))
>   (if (null? X) (cons () ())
>       (if (null? (cdr X)) (cons X ())
> 	  (let ((y ())
> 		(z ()))
> 	    (set! y (f X (cdr (cdr X))))
> 	    (set! z (cdr y))
> 	    (set-cdr! y ())
> 	    (cons X z)))))
> 

It works for me.  Tried all of the 1.6.98 compiled
from scratch, the CVS version of kawa, and the 1.6.98 jar.
I tried both -f foo.scm and -C foo.scm.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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