Artifacts Associated With Ticket 960154ffffffffffffffffffffffffffffffffff
Ticket change [497c104825] (rid 100059) by msofer on 2004-05-25 14:10:08:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "07. Variables"
- title initialized to: "global.n, upvar.n: qualified varNames?"
- type initialized to: "Bug"
Ticket change [02b2bb1fc6] (rid 119690) by msofer on 2004-05-25 21:29:01:
- closedate changed to: "2004-05-25T14:29:01"
- closer changed to: "msofer"
- resolution changed to: "Duplicate"
- status changed to: "Closed"