4.5 Scoping in the Interactive User Interface

There is also a way for introducing new global variables in the programming interface. The can be done by using the construct declare which introduces new variables and binds them to their value. For instance we can declare the variable X and assign the value 2 to X by the following statement:

declare X=2

The scope of declared variables is open until the end of the session in the interactive user interface. It is like a local expression but without an explicit end. Note that declare can only be used within the interactive user interface.


Denys Duchier, Claire Gardent and Joachim Niehren
Version 1.3.99 (20050412)