operator
true
if the stream
is attached to a destination and false
otherwise.
Replacing is
with isnt
will reverse the result.
stream (is | isnt) attachedor
#current-output (is | isnt) attachedor
#current-input (is | isnt) attached
is attached
is a test used to determine whether a stream
is attached to a destination.
A stream
can have three states:
unattached
, the initial state,
stream
is attached, its destination can be any one of five types:
buffer
,
file
,
referent
,
external string sink function
, or
#markup-parser
.
The is attached
test can also be applied to #current-input
, to determine when
#current-input
can supply data. In addition to this, the is attached
test can be applied to
a value string sink
or value markup sink
function argument, to determine when the argument
can receive data or signal
s.