diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2006-08-26 13:00:38 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2006-08-26 13:00:38 (GMT) |
commit | 8d05e9798827f58abf7ac5d5d28d2b03ede92daa (patch) | |
tree | 3df61a5d622e226e99dba583252d97dab5356aea /doc | |
parent | ccfa5605f3ee0ddba99ef360e7c3bc5414558987 (diff) | |
download | tcl-8d05e9798827f58abf7ac5d5d28d2b03ede92daa.zip tcl-8d05e9798827f58abf7ac5d5d28d2b03ede92daa.tar.gz tcl-8d05e9798827f58abf7ac5d5d28d2b03ede92daa.tar.bz2 |
bugfix, docs clarification and new tests for 'namespace upvar' [Bug 1546833]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/namespace.n | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/namespace.n b/doc/namespace.n index 150e7ee..99d885c 100644 --- a/doc/namespace.n +++ b/doc/namespace.n @@ -7,7 +7,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: namespace.n,v 1.20 2006/02/01 18:27:43 dgp Exp $ +'\" RCS: @(#) $Id: namespace.n,v 1.21 2006/08/26 13:00:38 msofer Exp $ '\" .so man.macros .TH namespace n 8.5 Tcl "Tcl Built-In Commands" @@ -251,9 +251,12 @@ the names of currently defined namespaces. .TP \fBnamespace upvar\fR \fInamespace\fR \fIotherVar myVar \fR?\fIotherVar myVar \fR... This command arranges for one or more local variables in the current -procedure to refer to variables in \fInamespace\fR. The command +procedure to refer to variables in \fInamespace\fR. The namespace name is +resolved as described in section \fBNAME RESOLUTION\fR. +The command \fBnamespace upvar $ns a b\fR has the same behaviour as -\fBupvar 0 $ns::a b\fR. +\fBupvar 0 $ns::a b\fR, with the sole exception of the resolution rules +used for qualified namespace or variable names. \fBnamespace upvar\fR returns an empty string. .TP \fBnamespace unknown\fR ?\fIscript\fR? |