with-input-from-string reader closure problem
It seems to me that
CL-USER 1 > (flet ((reader (stream)
(lambda ()
(read-char stream nil :eof))))
(funcall
(with-input-from-string (s "abc")
(reader s))))
:EOF
CL-USER 2 >
ought to evaluate to #\a. Am I reading the spec wrong somehow? Sure looks like an error to me. I
get the same result if I (defun reader (stream) ...).
Insights, fixes, workarounds much appreciated.
-Klaus.
PS. LWW Pro v4.3.7.