Subject: Re: CLOSE and OUTPUT-STREAM-P From: Erik Naggum <email@example.com> Date: Mon, 01 Apr 2002 12:14:11 GMT Newsgroups: comp.lang.lisp Message-ID: <firstname.lastname@example.org> * Kent M Pitman <email@example.com> | I think INPUT-STREAM-P and OUTPUT-STREAM-P are intended to guide you as | to what kinds of things you are intended to do on an object you've just | found. Agreed. | In this regard, I would say it's most important that if you do | (input-stream-p x) => t | on a closed stream, you are implying that peeking for data on the stream | is going to yield eof information without a problem and not complain that | it was improper for you to do this. Analogously for OUTPUT-STREAM-P. Here I disagree. If you are going to attempt any operations on a stream, open-stream-p gives the authoritative answer on whether any I/O will work on it, not whether it is an input-stream or an output-stream. /// -- In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief.