This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Error on seeing (a . b) can perplex
- From: Jocelyn Paine <popx at ifs dot org dot uk>
- To: kawa at sources dot redhat dot com
- Date: Sun, 14 Jul 2002 05:51:29 +0100 (BST)
- Subject: Error on seeing (a . b) can perplex
While I was trying to compile a program this morning, the compiler kept
throwing
java.lang.NegativeArraySizeException
at kawa.lang.Translator.rewrite_pair(Compiled Code)
at kawa.lang.Translator.rewrite_with_position(Translator.java:507)
at kawa.lang.Translator.rewrite(Translator.java:350)
I discovered eventually - looking for anything to do with pairs in my code
- that this was due to an "insufficient quoting" error that I perpetrate
too often, namely writing a pair as (a . b) instead of '(,a . ,b) or (cons
a b).
Could the compiler be modified to emit an error message that more
informatively describes the error? Not urgent by any means, but it might
save some of us those wasted moments spent on unwanted diagnostic
deviations in the program page.
Thanks,
Jocelyn Paine
http://www.ifs.org.uk/~popx/
+44 (0)7768 534 091