[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue: CLOSED-STREAM-OPERATIONS (Version 4)



In the implementations I've been most familiar with, INPUT-STREAM-P and
OUTPUT-STREAM-P are predicates on state rather than on "class". 

That is, a "stream" can have one of several states: closed, open for input,
open for output, open for both input/output.

CLOSE transitions a stream from one of the "open" states to one to the
closed state.

Well, anyway, that's how I think of it. In Interlisp, OPENP was the
predicate, you could ask just (OPENP x) or (OPENP x 'INPUT) or (OPENP X
'OUTPUT) or (OPENP X 'BOTH).