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

Issue: STREAM-ACCESS (Version 2)



The following paragraph from the description of OPEN-STREAM-P may
be misleading:
   Streams are "open" until they have been closed with CLOSE, or, the
   dynamic context of the creating/accessing macros of WITH-OUTPUT-TO-STRING,
   WITH-OPEN-FILE, WITH-INPUT-FROM-STRING, WITH-OPEN-STREAM, have been
   exited.
This may be taken to imply that the stream still exists (as a closed stream)
even after the dynamic extent of the WITH-xxx form is exited.  Because these
stream objects have dynamic extent, they cannot be referenced in any way once
the WITH-xxx form exits.  (They can't even be passed to OPEN-STREAM-P.) As a
practical example, the streams could be stack-consed, and future use could
cause crashes.  The reference to exited WITH-xxx forms should be deleted, or
explanatory text should be added.