summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authormlafon <mlafon@gmail.com>2017-05-05 22:57:25 (GMT)
committermlafon <mlafon@gmail.com>2017-05-05 22:57:25 (GMT)
commitf02f69d38c09e7aea70bbc7102301bbd0cb0d3f3 (patch)
treea6d17d75d475c712be0404d8e6f93ede252d6551 /doc
parent4a23d623604ea09039766f4674ca2e5c1e2e863a (diff)
downloadtcl-f02f69d38c09e7aea70bbc7102301bbd0cb0d3f3.zip
tcl-f02f69d38c09e7aea70bbc7102301bbd0cb0d3f3.tar.gz
tcl-f02f69d38c09e7aea70bbc7102301bbd0cb0d3f3.tar.bz2
TIP#457: Remove -varname, add level for -upvar
Diffstat (limited to 'doc')
-rw-r--r--doc/proc.n15
1 files changed, 5 insertions, 10 deletions
diff --git a/doc/proc.n b/doc/proc.n
index 78fa471..2dc2e3b 100644
--- a/doc/proc.n
+++ b/doc/proc.n
@@ -136,18 +136,13 @@ as potential switches. On call-site, the related switch value will be
set on the argument if one of the switch names is used.
See \fBNAMED ARGUMENTS HANDLING\fR below for details on named arguments.
.TP
-\fB-upvar \fIbool\fR
+\fB-upvar \fIlevel\fR
.VS
-If \fIbool\fR is set to true, this will cause the related variable,
-rather than taking the parameter value, to become an alias
-to the variable in caller's scope corresponding to the parameter value.
+When defined, this will cause the related variable, rather than taking
+the parameter value, to become an alias to the variable in the frame
+at level \fIlevel\fR corresponding to the parameter value. \fILevel\fR
+may have any of the forms permitted for the \fBupvar\fR command.
This specifier is incompatible with the \fB-switch\fR specifier.
-.TP
-\fB-varname \fIvarname\fR
-.VS
-Defines a new variable named \fIvarname\fR which will be added in the
-procedure with the original value of the parameter. This is mostly used
-with \fB-upvar 1\fR to access the name of the linked variable.
.VE
.SS "NAMED ARGUMENTS HANDLING"
.VS