Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function exec

exec block

Executes the Tea code represented by a code block object.

Parameters:
block - The code block object that will be executed.
Returns:
The result of the block evalution. That will be the value returned by the last function that gets invoked inside the code block.

The code block is executed in a new context that is a child of the context where the code block was defined.

The exec function could be defined like this:

define exec ( block ) {
    [lambda () $block]
}


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