Overview
| Artifact ID: | 9213ed82a1899fe3869c86da3342052dc94567a2 |
|---|---|
| Ticket: | 3086734fffffffffffffffffffffffffffffffff
namespace which -variable A(1) |
| User & Date: | oehhar on 2010-10-13 15:41:27 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
"namespace which -variable" is handy to reference variables and works intuitive for non-arrays: % namespace eval ns { set v 1 } % namespace eval ns { checkbutton .c -variable [namespace which -variable v] } With tcl 8.5, to acheve the same with array members, the solution is not so intuitive: % namespace eval ns { set A(1) B } % namespace eval ns { checkbutton .d -variable [namespace which -variable A](1) } Would it possible to also allow: % namespace eval ns { checkbutton .d -variable [namespace which -variable A(1)] } At the moment "namespace which -variable arr(ind)" returns the empty string and thus, the above does not work. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "21. [namespace]"
- title changed to: "namespace which -variable A(1)"
- type changed to: "RFE"