next up previous contents index
Next: Acknowledgments Up: Functions and Constructs Previous: Defining New Functions (function)

Top-Level Bindings (=)

     

You can bind a variable at top-level using the = operator. The syntax is:

tabular4412

For example, a = 211; will bind the variable a to the value 211. The variable can now either be referenced at top level, or can be referenced inside of any function. For example, the definition

would define a function that adds 211 to its input. Such top-level binding is mostly useful for saving temporary results at top-level, and for defining constants. The variable pi is bound at top level to the value of tex2html_wrap_inline9759 .



Jonathan Hardwick
Tue Nov 28 13:57:00 EST 1995