|
|||||
Related Syntax | Related Concepts | |
operator |
is attached
|
Return type: Boolean Returns true if the stream is attached to an object and false otherwise. Replacing is with isnt will reverse the results.
Returns:
Syntax
stream-name (is | isnt) attached
A stream test used to determine whether a stream is attached to an object.
A stream can have three states: unattached (initial state), opened or closed.
Streams may be attached to any one of five objects:
The association between an object and the attached stream can be broken using discard. If the stream was attached to a buffer, discard destroys the buffer.
Related Syntax close discard open reopen set set stream set buffer is closed is open set file set referent |
Related Concepts Streams: attachments |