diff options
author | Steve Bennett <steveb@workware.net.au> | 2013-12-21 02:09:41 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-08-26 11:57:36 +1000 |
commit | 19834c06937b342995de4186cc9733fdc958a463 (patch) | |
tree | f5385813fad7addca40d825972ff08ec034e54e7 | |
parent | f3df2d191f047247bf9ae97b907ae9776eeafc81 (diff) | |
download | jimtcl-19834c06937b342995de4186cc9733fdc958a463.zip jimtcl-19834c06937b342995de4186cc9733fdc958a463.tar.gz jimtcl-19834c06937b342995de4186cc9733fdc958a463.tar.bz2 |
Document the new interp command
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim_tcl.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index 97dc83e..c249886 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -78,6 +78,8 @@ Changes between 0.74 and 0.75 7. Add '--random-hash' to randomise hash tables for greater security 8. `dict` now supports 'for', 'values', 'incr', 'append', 'lappend', 'update', 'info' and 'replace' 9. `file stat` no longer requires the variable name +10. Add support for `file link` +11. Add new 'interp' module Changes between 0.73 and 0.74 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4990,6 +4992,28 @@ Provides namespace-related functions. See also: http://www.tcl.tk/man/tcl8.6/Tcl +*namespace which* '?-command|-variable? name'+:: Looks up +'name'+ as either a command (the default) or variable and returns its fully-qualified name. +interp +~~~~~~ +The optional 'interp' command allows sub-interpreters to be created where commands may be run +independently (but synchronously) of the main interpreter. + ++*interp*+:: + Creates and returns a new interpreter object (command). + The created interpeter contains any built-in commands along with static extensions, + but does not include any dynamically loaded commands (package require, load). + These must be reloaded in the child interpreter if required. + ++*$interp delete*+:: + Deletes the interpeter object. + ++*$interp eval* 'script' ...+:: + Evaluates a script in the context for the child interpreter, in the same way as 'eval'. + ++*$interp alias* 'alias childcmd parentcmd ?arg ...?'+:: + Similar to 'alias', but creates a command, +'childcmd'+, in the child interpreter that is an + alias for +'parentcmd'+ in the parent interpreter, with the given, fixed arguments. + The alias may be deleted in the child with 'rename'. + [[BuiltinVariables]] BUILT-IN VARIABLES ------------------ |