Creating nested safe interpreters and load Tk into it



Hi,

I would like to create nested safe interpreters, each having Tk loaded.

Creating one such interpreter works fine:

package require Tk
::safe::interpCreate level1
::safe::loadTk level1

But extending it by creating a slave interpreter:

package require Tk
::safe::interpCreate level1
::safe::loadTk level1

interp eval level1 {
::safe::interpCreate level2
::safe::loadTk level2
}

fails with the message: "not allowed to invoke subcommand isdirectory
of file"
I tried different approaches, without luck.

Any glues?

Thanks in advance,
Merijn

.



Relevant Pages

  • [ANN] rpncalc-2.0
    ... The rpncalc package adds an interactive Reverse Polish Notation ... This interpreter allows the use of Python as ...
    (comp.lang.python.announce)
  • ANNOUNCE: tclperl-3.2
    ... Makefile.vc included in distribution for compiling under Windows ... a Perl package for Tcl ... This package allows the execution of Perl code from a Tcl interpreter, ...
    (comp.lang.tcl)
  • Re: Writing extensions in C: questions:
    ... The correct way to set the interpreter ... >provide], which says it is invoked when the package is finally loaded, ... It seems to me this would result in additional commands being ... >created commands if anything subsequently fails during init? ...
    (comp.lang.tcl)
  • Re: Standalone Javascript interpreter for Linux?
    ... package system for SipderMonkeys js interpreter (instead of directly ... A full scripting environment for JS on the command line would be very ... The foundation of what I'm building is a package management client ...
    (comp.lang.javascript)
  • ANNOUNCE: tclpython-4.1
    ... Makefile.vc included in distribution for compiling under Windows ... a Python package for Tcl ... $interpreter exec ... interpreter from a Python interpreter: ...
    (comp.lang.tcl)