[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keyboard input in Dr. Scheme

Quoting Alexander Nakhimovsky:
> What do I enter from the keyboard to have the following expression return true?
> (eq? (read-char) 'y)

There is no such thing. read-char returns characters, not symbols.
Probably you wanted to use this:

  (char=? (read-char) #\y)

but be careful: read-char can return eof as well.