How can one receive input from the terminal in a program created in the
editor of LispWorks? For instance, if one includes the form (setf a (read))
in the program one types up in the editor, saves the file, and then loads
it, one gets an error. No problems arises if such a form is used in the
listener window.
Newbie-2
From: Christopher C Stacy
Subject: Re: Obtaining terminal input in LispWorks
Date:
Message-ID: <x8ln1idcvw7.fsf@world.std.com>
>>>>> On Wed, 16 Aug 2000 10:15:49 GMT, David Pager ("David") writes:
David> How can one receive input from the terminal in a program created in the
David> editor of LispWorks? For instance, if one includes the form (setf a (read))
David> in the program one types up in the editor, saves the file, and then loads
David> it, one gets an error. No problems arises if such a form is used in the
David> listener window.
Not true. Calling LOAD on a file containing a call to READ just works.
That is, it prints the message ";Loading foo.lisp" and waits for input.
But calling READ from inside the editor (for example, with m-X Eval Buffer)
blows up, probably because it doesn't have an appropriate input stream.
I think you answered your own question with your last sentence.
One edits code in the Editor, and interactively tests it using the Listener.