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.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to