views:

49

answers:

0

Possible Duplicate:
Lisp format and force-output

I'm reading Paul Grahams book ANSI common lisp and on page 19 (haven't gotten far yet) there is an example that I tried in sbcl.

(defun askem (string)
  (format t "~A" string)
  (read))

When I run it in REPL, I have to input something before the prompt is printed. If I save the file and do

(load "test.lisp") 
(askem "test> ")

the same occurs Any reason why?