![]() | ![]() | ![]() | ![]() |
39.4. Global Data in PL/TclSometimes it is useful to have some global data that is held between two calls to a function or is shared between different functions. This is easily done since all PL/Tcl functions executed in one session share the same safe Tcl interpreter. So, any global Tcl variable is accessible to all PL/Tcl function calls and will persist for the duration of the SQL session. (Note that PL/TclU functions likewise share global data, but they are in a different Tcl interpreter and cannot communicate with PL/Tcl functions.) To help protect PL/Tcl functions from unintentionally interfering
with each other, a global
array is made available to each function via the An example of using GD appears in the
|
||||||||||||