Hello,
I have found a bug where Guile does not handle escaped open
parentheses correctly. This was found in a real program which works in
Dr. Racket in R5RS mode. You are not the only interpreter available on
Fedora 15 which fails this, but anyhow.
Guile version:
Guile v. 2.0.1 compiled from sources.
Testcase:
(define bug
'(\())
Expected results:
No errors. bug variable should now be bound to the list (().
Actual result:
[torstein@Desktor Skrivebord]$ guile -l testcase.scm --no-auto-compile
ERROR: In procedure primitive-load:
ERROR: In procedure scm_i_lreadparen:
/home/torstein/Skrivebord/testcase.scm:3:12: end of file
In the actual program the list was larger, '(\{ \[ \(), and then the error was:
[torstein@Desktor Skrivebord]$ guile -l testcase.scm --no-auto-compile
ERROR: In procedure primitive-load:
ERROR: In procedure scm_read_expression:
/home/torstein/Skrivebord/testcase.scm:2:27: unexpected ")"
--
Mvh / Kind regards
Torstein