Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-10-30
16:52
[253ba6e818] Improved description of [variable] behaviour. check-in: c607c5d558 user: dkf tags: trunk
16:37 • Closed ticket [253ba6e818]: Documentation glitch for variable command plus 6... artifact: 4fa0e41ba3 user: dkf
16:16
[253ba6e818] Improved description of [variable] behaviour. check-in: 6abd304ca2 user: dkf tags: core-8-6-branch
2016-10-14
08:46 • Ticket [253ba6e818] Documentation glitch for variable command status still O... artifact: f3d9eb9447 user: dkf
08:45 • Ticket [253ba6e818]: 4 changes artifact: 9116adf017 user: dkf
2016-07-28
19:45 • New ticket [253ba6e818]. artifact: 2e891fc086 user: peterlewerin

Documentation glitch for variable command

Closed / Fixed253ba6e818fe13b14b802863a04f6644f2d153b4Created 10 years agoUpdated 10 years ago
Descriptionplain2016-07-28 19:45:39
This part of doc/variable.n:

    46  In this way the \fBvariable\fR command resembles the \fBglobal\fR command,
    47  although the \fBglobal\fR command
    48  only links to variables in the global namespace.

does not reflect actual behavior. Should be replaced with:

    46  In this way the \fBvariable\fR command resembles the \fBglobal\fR command.

That is, the comma at the end of the line replaced with a period, and lines 47 and 48 deleted.
Referenced by2
dkfwiki2016-10-14 08:45:36

It's not quite right, I agree, but deletion isn't right either. The global command defaults to linking to variables in the global namespace; that's its resolution root, whereas variable uses the current namespace as its resolution root.

And then there's resolvers, and they just make my head hurt. Having written one does not help the headache.

dkf Ticket [253ba6e818]: 4 changes [History diff]2016-10-14 08:46:16
dkfhtml2016-10-30 16:37:16

Improved the wording to be:

although the \fBglobal\fR command
resolves variable names with respect to the global namespace instead
of the current namespace of the procedure.

Log in (anonymous is fine) to add a comment.