Overview
| Artifact ID: | 497c1048253237a474a11bb00b6e6b45fbb0a36a |
|---|---|
| Ticket: | 960154ffffffffffffffffffffffffffffffffff
global.n, upvar.n: qualified varNames? |
| User & Date: | msofer on 2004-05-25 14:10:08 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
The manual pages for global and upvar commands do not explain the behaviour when the variable names contain namespace qualifiers. This is not so bad for upvar, as the behaviour is quite intuitive. Not the same for global ... One possibility is to explain global's behaviour, and show that it could be defined as proc global args { if {[info level] < 2} { return } set cmdName [namespace tail [lindex [info level -1] 0]] if {[info procs $cmdName] eq {}} { return } set cmd [list upvar 0] foreach var $args { lappend cmd ::$var [namespace tail $var] } uplevel 1 $cmd return } - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "07. Variables"
- title changed to: "global.n, upvar.n: qualified varNames?"
- type changed to: "Bug"