This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: incompatible change for keyword literals in Kawa Scheme
On 03/09/2009 01:33 AM, Helmut Eller wrote:
(keyword? foo:)
=> true
(define (read-from-string s) (call-with-input-string s read))
(keyword? (read-from-string "foo:"))
=> false
Why does the second call to keyword? return false?
I checked in a fix for this. What I did was made the flags that
control whether initial and/or final colon identifier is a Keyword
into properties of the read-table (the ReadTable class) rather
than the LispReader. This seems cleaner and fixes the problem
since read already looks for the "current" read-table.
Thanks for the report.
--
--Per Bothner
per@bothner.com http://per.bothner.com/