Overview Module Function Class Tea 3.2.4 Reference Documentation
© 2009 PDM&FC

Function global

global varName value
global functionName formalArgs body

Creates a variable in the outermost context.

Parameters:
varName - Symbol identifying the variable to be created in the outermost context.
value - The object for wich the variable will hold a reference.
formalArgs - List of symbols representing the function formal arguments, or a symbol representing the list of formal arguments.
body - Code block object that will be used as the new function body.
Returns:
The contents of the variable, that is, a reference to value object.

Equivalent to the function define but at the outermost context.

Overview Module Function Class Tea 3.2.4 Reference Documentation
© 2009 PDM&FC
Report a bug or request new features
© 2009