weird SBCL bug

48 views
Skip to first unread message

Mark Tarver

unread,
Oct 3, 2017, 3:49:23 PM10/3/17
to Shen
Experimenting with the Ring under SBCL - I've generated the standalone for the interpreter in TBoS.  I have a weird bug.

* (read (stinput))
[1 2 3]

(cons 1 (cons 2 (cons 3 NIL)))

That is the correct response. The star is the SBCL top level prompt.  However having entered this if I enter

* 'howdy

or indeed any input, the SBCL REPL hangs.  I have to then break and return to the top level to proceed.

What could make the REPL behave this way?

Mark

Mark Tarver

unread,
Oct 3, 2017, 4:03:57 PM10/3/17
to Shen
Ah.  The stinput has to be flushed.  

* (DEFUN read (V2557) (PROG1 (CAR (shen.read-loop V2557 () (read-byte V2557) ())) (CLEAR-INPUT)))

Mark
Reply all
Reply to author
Forward
0 new messages