Subject: Re: CLOSE and OUTPUT-STREAM-P From: Erik Naggum <email@example.com> Date: Mon, 01 Apr 2002 10:35:52 GMT Newsgroups: comp.lang.lisp Message-ID: <firstname.lastname@example.org> * Sam Steingold <email@example.com> | what should OUTPUT-STREAM-P/INPUT-STREAM-P return for closed streams? Same as for the open stream, of course. The stream was created for output or input or both. If you want to know if it is also open, open-stream-p provides that answer. It is possible determine that a stream is closed but was used for output in the current design. If you make these predicates test for open-stream-p first, you remove the ability of a program to test for what a stream was before it was closed. If you conflate these two predicates, you actually destroy information. Please do not destroy information just because you would like to avoid writing more code. /// -- 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.