Subject: Re: Clearing eof condition from stream.
From: Erik Naggum <erik@naggum.net>
Date: Mon, 05 Nov 2001 23:04:22 GMT
Newsgroups: comp.lang.lisp
Message-ID: <3213990261419534@naggum.net>

* Kaz Kylheku
| I can't find anything in the HyperSpec about how an end of input
| indication affects the state of a Lisp stream.  Is there an end-of-file
| state that can be removed, so that further input operations on the file
| or device can be attempted?

  My understanding is that such "error states" are not remembered, because
  you are supposed to actually deal with an error condition, which is quite
  unlike the situation in a language where errors are routinely ignored and
  it would be a service to the programmer to let him clear the error/eof
  flag once some part of the program that cared about such things had time
  to look at it.  So look at it as if the handler in both languages clears
  the error flag, but you always handle an error immediately in Common Lisp
  and so decoupling the error flag from the handler makes no sense.

///
-- 
  Norway is now run by a priest from the fundamentalist Christian People's
  Party, the fifth largest party representing one eighth of the electorate.
-- 
  Carrying a Swiss Army pocket knife in Oslo, Norway, is a criminal offense.