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.
Report a bug or request new features
© 2009