aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2025-01-08 07:53:49 +1000
committerSteve Bennett <steveb@workware.net.au>2025-01-08 07:53:49 +1000
commitfd336b0ffda67b851a66a76b7be0f2df78860cf8 (patch)
tree4ce43b6efa38a2cadfb9a539b5c92281d81a9e27
parent50e280a911611a642121fe08f88c79be3fc5991e (diff)
downloadjimtcl-fd336b0ffda67b851a66a76b7be0f2df78860cf8.zip
jimtcl-fd336b0ffda67b851a66a76b7be0f2df78860cf8.tar.gz
jimtcl-fd336b0ffda67b851a66a76b7be0f2df78860cf8.tar.bz2
docs: document namespace canon
This subcommand is specific to Jim Tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--jim_tcl.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 7b321ef..622495c 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -5778,6 +5778,11 @@ namespace
~~~~~~~~~
Provides namespace-related functions. See also: http://www.tcl.tk/man/tcl8.6/TclCmd/namespace.htm
++*namespace canonical* ?current? ?name?+::
+ Returns the full name of +'name'+ within namespace '+current+'.
+ If '+current+' is not given, `namespace current` is used.
+ If neither are given, returns the current namespace (not qualified with a leading '::').
+
+*namespace code* 'script'+::
Captures the current namespace context for later execution of
the script +'script'+. It returns a new script in which script has