The Local Environment Object (.local)
The Local environment object is is a directory
of process-specific objects that are always accessible. To place something
in the Local environment directory, use the form:
.local~your.object = value
Be sure to include a period (.) in any object name you use, to avoid conflicts
with current or future REXX entries to the Local directory. To retrieve
your object, use the form:
say .local~your.object
The scope of .local is the current process. To give your object definition
wider retrievability, place it in .environment, where the object will be
shared across environments.
Access objects in the Local environment object the same way as in the Environment
object. REXX provides the following objects in the Local environment:
- error
The Error object (the default error stream)
where REXX writes error messages and trace output to.
.input
The Input object (the default input stream), which
is the source for the PARSE LINEIN instruction, the LINEIN method of the
Stream class, and (if you don't specify a stream name) the LINEIN built-in
function. It is also the source of the PULL and PARSE PULL instructions
if the external data queue is empty.
.output
The
Output object (the default output stream), which is the destination of output
from the SAY instruction, the LINEOUT method (.OUTPUT~LINEOUT), and (if
you don't specify a stream name) the LINEOUT built-in function. You can
replace this object in the environment to direct such output elsewhere (for
example, to a transcript window).
.som
.somclass
.somclassmgrobject
The
SOMClassMgrObject object.
.somobject
[Back: The NIL Object (.nil)]
[Next: Built-In Environment Objects]