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: incompatible change for keyword literals in Kawa Scheme


On 03/09/2009 01:33 AM, Helmut Eller wrote:
Anyway, I have some trouble with this code:

(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?

That's a bug. The problem is that the read routine allocates a fresh LispReader with the default settings.

It's easy to fix this for Scheme (add a call to
setFinalColonIsKeyword(true)). But I'd like to fix
this so calling read from Common Lisp or Emacs Lisp
use appropriate read functions for those languages,
which is a little less trivial ...

I'll try to get to it today.
--
	--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]