Subject: Re: Simple question
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 27 Apr 2007 03:09:57 -0500
Newsgroups: comp.lang.lisp
Message-ID: <ba-dnVJI3vNIMqzbnZ2dnUVZ_sHinZ2d@speakeasy.net>
John Thingstad <john.thingstad@chello.no> wrote:
+---------------
|  Q <qalex1@gmail.com> wrote:
| > Is there a way to force an EOF character to be at the end of a
| > stream?  I have an open stream that doesn't have an EOF, so when I try
| > to read-line it just hangs there.
| 
| yes. (force-output) also see (force-input)
+---------------

What is this "FORCE-INPUT" of which you speak?  ;-}  ;-}
It's not in the CLHS.

+---------------
| Here is a simple game that demonstates use.
| http://home.chello.no/~jthing/games/roulette.html
+---------------

Uh... That demonstrates CLEAR-INPUT, not FORCE-INPUT.
And CLEAR-INPUT only clears the input buffer, it doesn't
force an EOF on the stream, which is what the OP was asking.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607