has name Full Description |
|
Syntaxstream? stream-name indexer? (has | hasnt) name Purpose Streams that are attached to files, referents and external functions have names. Also, the built-in stream If the stream has a name, the The built-in stream This example illustrates the use of global stream new-output ... do when new-output has name do unless name of new-output = "new-out.txt" put #error "stream new-output has unexpected name: " put #error name of new-output halt with 1 done else put #error "new-output was never opened " _ "as file or referent%n" halt with 1 done |