From fd336b0ffda67b851a66a76b7be0f2df78860cf8 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Wed, 8 Jan 2025 07:53:49 +1000 Subject: docs: document namespace canon This subcommand is specific to Jim Tcl Signed-off-by: Steve Bennett --- jim_tcl.txt | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.1