[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Modification to LISTEN
- To: robbins@DEC-HUDSON.ARPA
- Subject: Modification to LISTEN
- From: Glenn S. Burke <GSB@MIT-MC.ARPA>
- Date: Sat, 21 Sep 85 02:12:53 EDT
- Cc: common-lisp@SU-AI.ARPA
Aside from some already mentioned reasons, one can always do
(defun listen (&optional (input-stream *standard-input*))
(let ((char (read-char-no-hang stream nil nil)))
(cond ((null char) nil)
(t (unread-char char) t))))
instead of the other way around, without changing the definition of
anything.