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: catch statement inside a new class don't compile


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.


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