diff options
author | dgp <dgp@users.sourceforge.net> | 2008-09-25 19:26:36 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-09-25 19:26:36 (GMT) |
commit | 5115781cfdf86915300c18ff4ec8e51c09a30219 (patch) | |
tree | 6cb2a302ad2c0d645cb49a3e5fa53646284f2cb9 /doc/global.n | |
parent | f4151635b12b2c9b62d1b638b7096875bb65bc76 (diff) | |
download | tcl-5115781cfdf86915300c18ff4ec8e51c09a30219.zip tcl-5115781cfdf86915300c18ff4ec8e51c09a30219.tar.gz tcl-5115781cfdf86915300c18ff4ec8e51c09a30219.tar.bz2 |
TIP #323 IMPLEMENTATION (partial)
* doc/global.n: Revise [global] to accept zero variable names.
* generic/tclVar.c:
* tests/proc-old.test:
* tests/var.test:
* doc/global.n: Correct false claim about [info locals].
Diffstat (limited to 'doc/global.n')
-rw-r--r-- | doc/global.n | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/global.n b/doc/global.n index e330954..bcf4391 100644 --- a/doc/global.n +++ b/doc/global.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: global.n,v 1.12 2007/12/13 15:22:32 dgp Exp $ +'\" RCS: @(#) $Id: global.n,v 1.13 2008/09/25 19:26:36 dgp Exp $ '\" .so man.macros .TH global n "" Tcl "Tcl Built-In Commands" @@ -14,15 +14,16 @@ .SH NAME global \- Access global variables .SH SYNOPSIS -\fBglobal \fIvarname \fR?\fIvarname ...\fR? +\fBglobal \fR?\fIvarname ...\fR? .BE .SH DESCRIPTION .PP This command has no effect unless executed in the context of a proc body. If the \fBglobal\fR command is executed in the context of a proc body, it -creates local variables linked to the corresponding global variables (and -therefore these variables are listed by info locals). +creates local variables linked to the corresponding global variables (though +these linked variables, like those created by \fBupvar\fR, are not included +in the list returned by \fBinfo locals\fR). .PP If \fIvarname\fR contains namespace qualifiers, the local variable's name is the unqualified name of the global variable, as determined by the |