This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Bug with let-values?
- From: Per Bothner <per at bothner dot com>
- To: dominique dot boucher at nuecho dot com
- Cc: "'Kawa List'" <kawa at sources dot redhat dot com>
- Date: Wed, 19 Oct 2005 12:26:35 -0700
- Subject: Re: Bug with let-values?
- References: <200510141913.j9EJDXw8018391@bergman.nuecho.ad>
Dominique Boucher wrote:
I don't know if this is related, but I got a similar problem with a
combination of let-values/syntax-case/with-syntax/syntax (I'm currently
doing a bit of complex macrology...):
(define-syntax test-syntax
(lambda (stx)
(syntax-case stx ()
((_ args ...)
(let-values (((x y) (foo (syntax (args ...)))))
(with-syntax ((v x) (w y))
(syntax
(begin (v) (w)))))))))
When I evaluate that form, I get:
<stdin>:3:3: internal compile error - caught java.lang.NullPointerException
I just reimplemented case-lambda (to translate into make-procedure),
and I used a nested syntax-case and ran into the same problem.
I just checked in a fix.
Sorry I didn't fix this for the 1.8 release.
--
--Per Bothner
per@bothner.com http://per.bothner.com/