|
|||||
Streams: open streams in local scopes | |||||
Prerequisite Concepts | Related Syntax |
When a local scope exits, any open streams declared in that local scope are automatically closed, just as any open global streams are automatically closed when the program ends.
However, it is an error to close a stream which is in any #current-output
set (active or saved). In those cases output-to
should be used before the end of the local scope to change the current output set to a stream (or streams) which is not declared in that local scope.
Prerequisite Concepts Arrays Scope of variables |
Related Syntax open output-to |
---- |