Tcl Source Code

Check-in [6abd304ca2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[253ba6e818] Improved description of [variable] behaviour.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | core-8-6-branch
Files: files | file ages | folders
SHA1: 6abd304ca287185d3876af8a36148682f8cd9cea
User & Date: dkf 2016-10-30 16:16:29.646
Context
2016-11-02
12:44
Update http version number to 2.8.10, due to [838e99a76d] check-in: 47bd2d0bbb user: jan.nijtmans tags: core-8-6-branch
12:09
merge core-8-6-branch check-in: d495ef896c user: jan.nijtmans tags: zipfs
2016-10-30
16:52
[253ba6e818] Improved description of [variable] behaviour. check-in: c607c5d558 user: dkf tags: trunk
16:16
[253ba6e818] Improved description of [variable] behaviour. check-in: 6abd304ca2 user: dkf tags: core-8-6-branch
08:22
[1ae12987cb] Ensure that deleting the [history] command deletes its storage. check-in: 3135d5681f user: dkf tags: core-8-6-branch
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to doc/variable.n.
41
42
43
44
45
46
47
48


49
50
51
52
53
54
55
41
42
43
44
45
46
47

48
49
50
51
52
53
54
55
56







-
+
+







.PP
If the \fBvariable\fR command is executed inside a Tcl procedure,
it creates local variables
linked to the corresponding namespace variables (and therefore these
variables are listed by \fBinfo vars\fR.)
In this way the \fBvariable\fR command resembles the \fBglobal\fR command,
although the \fBglobal\fR command
only links to variables in the global namespace.
resolves variable names with respect to the global namespace instead
of the current namespace of the procedure.
If any \fIvalue\fRs are given,
they are used to modify the values of the associated namespace variables.
If a namespace variable does not exist,
it is created and optionally initialized.
.PP
A \fIname\fR argument cannot reference an element within an array.
Instead, \fIname\fR should reference the entire array,
94
95
96
97
98
99
100




95
96
97
98
99
100
101
102
103
104
105







+
+
+
+
    }
}
.CE
.SH "SEE ALSO"
global(n), namespace(n), upvar(n)
.SH KEYWORDS
global, namespace, procedure, variable
.\" Local variables:
.\" mode: nroff
.\" fill-column: 78
.\" End: