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]

error diagnostics in 1.6.97


It seems the load procedure give line/column/error information, while
read just gives the SyntaxException class.

#|kawa:1|# (load "/tmp/bad.scm")
/tmp/bad.scm:4:1: unexpected EOF in list
#|kawa:2|# (call-with-input-file "/tmp/bad.scm" read)
java.lang.RuntimeException: syntax error in read: gnu.text.SyntaxException
        at java.lang.Throwable.<init>(Throwable.java:96)
	...


What should read be doing that load is doing?

(I ask this because I want to make brl-read show line/column/error
information too.)

-- 
Bruce R. Lewis				http://brl.sourceforge.net/


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