Tcl Source Code

Check-in [6abd304ca2]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

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

Overview
Comment:[253ba6e818] Improved description of [variable] behaviour.
Downloads: Tarball | ZIP archive | SQL 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
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
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to doc/variable.n.

    41     41   .PP
    42     42   If the \fBvariable\fR command is executed inside a Tcl procedure,
    43     43   it creates local variables
    44     44   linked to the corresponding namespace variables (and therefore these
    45     45   variables are listed by \fBinfo vars\fR.)
    46     46   In this way the \fBvariable\fR command resembles the \fBglobal\fR command,
    47     47   although the \fBglobal\fR command
    48         -only links to variables in the global namespace.
           48  +resolves variable names with respect to the global namespace instead
           49  +of the current namespace of the procedure.
    49     50   If any \fIvalue\fRs are given,
    50     51   they are used to modify the values of the associated namespace variables.
    51     52   If a namespace variable does not exist,
    52     53   it is created and optionally initialized.
    53     54   .PP
    54     55   A \fIname\fR argument cannot reference an element within an array.
    55     56   Instead, \fIname\fR should reference the entire array,
................................................................................
    94     95       }
    95     96   }
    96     97   .CE
    97     98   .SH "SEE ALSO"
    98     99   global(n), namespace(n), upvar(n)
    99    100   .SH KEYWORDS
   100    101   global, namespace, procedure, variable
          102  +.\" Local variables:
          103  +.\" mode: nroff
          104  +.\" fill-column: 78
          105  +.\" End: