[chicago-lisp] Working through Practical Common Lisp

Andrew K. Wolven awolven at yahoo.com
Mon Apr 18 03:58:54 UTC 2005


  ----- Original Message ----- 
  From: PJ Hyett 
  To: chicago-lisp at common-lisp.net 
  Sent: Sunday, April 17, 2005 9:37 PM
  Subject: [chicago-lisp] Working through Practical Common Lisp


  Hi Lispers,
  I'm a total Lisp newbie working my way through the new Practical Common Lisp book and I've encountered an odd problem. Using these functions:

  (defun prompt-read (prompt)
    (format *query-io* "~a: " prompt)
    (force-output *query-io*)
    (read-line *query-io*))

  (defun prompt-twice()
    (prompt read (prompt-read "hello"))

  Running this on the REPL: (prompt-twice)

  Gives me the following output:
  hello: hi
  hi:

  ""
  NIL

  The program exits before I have a change to enter anything on the hi: line. Any Lisp guys out there wanna set me straight? I'm using Lisp in a Box on Suse 9.2 Pro.
Works fine on Allegro and LispWorks.

??

AKW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/chicago-lisp/attachments/20050417/02b207d0/attachment.html>


More information about the Chicago-lisp mailing list