sbcl vs clisp
Posted: Sun Nov 21, 2010 2:02 pm
Hi!
My problem is that the code below behaves differently in sbcl and clisp
In clisp i'm first prompted with "Please enter your name:"
In sbcl, when i run (say-hello) i'm carried over to the next line without any prompt. Then when i enter something things just get weired:
Can someone please explain what is going on?
/Igor
My problem is that the code below behaves differently in sbcl and clisp
Code: Select all
(defun say-hello ()
(princ "Please type your name:")
(let ((name (read-line)))
(princ "Nice to meet you, ")
(princ name)))
Code: Select all
[2]> (say-hello)
Please type your name:asd
Nice to meet you, asd
"asd"
Code: Select all
* (say-hello)
asd
Please type your name:Nice to meet you, asd
"asd"
/Igor