diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | doc/UpVar.3 | 9 |
2 files changed, 12 insertions, 4 deletions
@@ -1,5 +1,12 @@ 2006-10-09 Miguel Sofer <msofer@users.sf.net> + * doc/UpVar.3: brough the docs in accordance to the code. Ever + since 8.0, Tcl_UpVar(2)? accepts TCL_NAMESPACE_ONLY as a flag + value, and var-3.4 tests for proper behaviour. The docs only + allowed 0 and TCL_GLOBAL_ONLY. + +2006-10-09 Miguel Sofer <msofer@users.sf.net> + * tests/*.test: updated all tests to refer explicitly to the global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the diff --git a/doc/UpVar.3 b/doc/UpVar.3 index 56aba45..01b0221 100644 --- a/doc/UpVar.3 +++ b/doc/UpVar.3 @@ -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: UpVar.3,v 1.10 2004/10/07 15:15:48 dkf Exp $ +'\" RCS: @(#) $Id: UpVar.3,v 1.11 2006/10/09 23:38:56 msofer Exp $ '\" .so man.macros .TH Tcl_UpVar 3 7.4 Tcl "Tcl Library Procedures" @@ -39,9 +39,10 @@ variable so that references to \fIdestName\fR refer to the other variable. Must not currently exist except as an upvar-ed variable. .AP int flags in -Either \fBTCL_GLOBAL_ONLY\fR or 0; if non-zero, then \fIdestName\fR is -a global variable; otherwise it is a local to the current procedure -(or global if no procedure is active). +One of \fBTCL_GLOBAL_ONLY\fR, \fBTCL_NAMESPACE_ONLY\fR or 0; if non-zero, +then \fIdestName\fR is a global or namespace variable; otherwise it is +local to the current procedure (or current namespace if no procedure is +active). .AP "const char" *name1 in First part of source variable's name (scalar name, or name of array without array index). |