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

Function tea-shared-define

tea-shared-define key value

Creates a variable shared between all the Tea interpreters running in a JVM.

Parameters:
key - Symbol identifying the shared variable being defined.
value - The initial value of the shared variable being created. It can be a symbol, a string, a boolean, a numeric object or the null object.
Returns:
The value argument.

This function creates a data area shared among all the Tea interpreters running in the JVM. This shared data area can be compared to a variable. Each data area holds an object and is identified by a symbol but it can only be accessed with specific functions. To modify the shared variable contents the function tea-shared-set! is used. The function tea-shared-get is used to retrieve a previously stored value.

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