This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: catch statement inside a new class don't compile
- From: Chris Dean <Chris dot Dean at sokitomi dot com>
- To: Wen-Chun Ni <wcn at tbcommerce dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 01 Apr 2003 10:47:13 -0800
- Subject: Re: catch statement inside a new class don't compile
- References: <3E8466FD.1050409@jet.msk.su> <20030401055804.GA2111@tbcommerce.com>
This is certainly a bug (NullPointerExceptions should never happen), but
if you're searching for a workaround, these work:
(define foo-1
(lambda (y)
(+ 1 y)))
(define (foo-2)
(let ((x 1))
(lambda (y)
(+ x y))))
(define foo-3 (foo-2))
Regards,
Chris Dean
Wen-Chun Ni <wcn at tbcommerce dot com> wrote:
> Looks like I've got the same thing even in a simple case like
>
> (define foo
> (let ((x 1))
> (lambda (y)
> (+ x y))))
>
>
> It shows the same stacktrace when compiled with --module-static.