This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: kawa 1.6.98 problem
- From: Per Bothner <per at bothner dot com>
- To: "Dr. M. Luedde" <Mirko dot Luedde at Computer dot Org>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 08 May 2002 08:29:47 -0700
- Subject: Re: kawa 1.6.98 problem
- References: <15576.57117.212000.76288@gargle.gargle.HOWL>
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/