This is the mail archive of the kawa@sourceware.org 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: Bug with let-values?


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/


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