|
|||||
declaration/definition | declare #main-output has referents-displayed | ||||
Related Syntax |
Syntax
declare #main-output has referents-displayed
The declare #main-output
referents declaration can be used to set referents-displayed
. This can be useful when referents are erroneously written to the #main-output
stream and the programmer needs to be able to examine the output to determine where the error is occurring. It can also be useful when the #main-output
stream is being used as a mechanism to log in or out.
referents-displayed
specifies that when a referent is written to the stream, it is converted to a text representation that can be immediately evaluated. In other words, instead of writing the actual referent, a string expression describing the referent is written instead.
The string expression written contains the name of the referent, its current value, and the name of the stream to which it is attached (#main-output
, in this example).
Related Syntax declare #main-output has referents-not-allowed declare #main-output has referents-allowed |
---- |