| 21.5 Safe-Tcl |
|
|
The -safe switch for the interp command does four important things.
Interpreters created with the -safe switch are called Safe Base. When slaves are Safe Base, they are essentially deaf, dumb, and blind. But slaves need not remain Safe Base. Scripts running in the master can empower them. When this is done to a slave, it is incorrect to call it "Safe Base" any longer. Even so, the issafe action will report that they are "safe." The point of issafe is clearly to enable master scripts to avoid giving power to arbitrary slaves and not as a test to see what is really safe. If Tk is going to be loaded into a safe slave of a Tk master interpreter, it must be constrained in a way similar to the version of Tk that appears in the plugin. As yet, there is no simple, stable way of doing this. With the currently experimental version 8.1 there is a safe namespace full of procedures that look interesting. Check it out if you have a need that the plugin cannot satisfy. |
Author's Home Page |
|
Order from Amazon. |