From: Roderick <hr...@gm...> - 2017-08-28 07:46:26
|
In naviserver-4.99.15/doc/html/manual/files/tcl-overview.html we read: >>> Tcl Interpreters During NaviServer initialization, only one interpreter exists. While modules are loaded and initialized, they may add procedures to the interpreter. When initialization is complete (all modules are loaded and all Tcl libraries have been executed), the interpreter may no longer be changed. Each connection thread that requires Tcl will create a copy of the original interpreter. <<< That they may add procedures does not exclude that they also may add global variables. After some experiments, it seems to me that at some point global variables in the loaded modules *and* libraries are unset, I suppose immeadately after modules are loaded and libraries are executed. Is it true? When it happens? An explicit hint to it in the documentation would help beginners a lot. It is a question of taste: I would preffer to decide what variables to unset and not let the server do it automatically, but it could be a source of chaos. Thanks Rodrigo. |