Version 1 of namespace inscope

Updated 2012-09-27 14:23:19 by LkpPo

namespace inscope namespace script ?arg ...?

Executes a script in the context of the specified namespace. This command is not expected to be used directly by programmers; calls to it are generated implicitly when applications use namespace code commands to create callback scripts that the applications then register with, e.g., Tk widgets. The namespace inscope command is much like the namespace eval command except that the namespace must already exist, and namespace inscope appends additional args as proper list elements. namespace inscope ::foo $script $x $y $z is equivalent to namespace eval ::foo [concat $script [list $x $y $z]]] thus additional arguments will not undergo a second round of substitution, as is the case with namespace eval.

See also: