Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9213ed82a1899fe3869c86da3342052dc94567a2
Ticket: 3086734fffffffffffffffffffffffffffffffff
namespace which -variable A(1)
User & Date: oehhar on 2010-10-13 15:41:27
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "oehhar"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to: "namespace which -variable A(1)"
  12. type changed to: "RFE"