Interaction: | An open stream variable is closed when a new stream variable is opened. |
If you assign the name of a memory variable to stream-variable, then the stream variable resolves as the value of the memory variable. For example, the following program uses the memory variable $MyStream as a stream variable:
set $mystream 'test'; open $mystream; put 'The memory variable $mystream is being used as a stream variable'; close;Therefore, the following statements are equivalent:
put $$test; putstream $mystream; putstream test;The following statements are also equivalent:
unset $$test; delstream $mystream; delstream test;See memory variables.