...
> Thinking about it I think it is reasonably secure, the only command that I
> don't know how to deal with so far is "info", as it is called with "info
> procs", "info body" (...) in "namespace.tcl" and I need the "info exists"
> part by myself.
You can override any command you want, or have the user code eval
in a slave interpreter, where you may not require 'info' to be
present at all (although that would be limiting).
> Btw: Would it be possible and/or make sense to byte-compile _everything_?
Just
> thought about it when examining the line
>
> #catch { set fh [open init_interp_code.tcl w] ; puts $fh $init ;
> close $fh }
>
> in namespace.tcl, proc _ns_getinit.
> Somebody ever tried this?
What do you mean? What exactly are you trying to achieve?
Jeff Hobbs The Tcl Guy
Senior Developer http://www.ActiveState.com/