Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e25e56b9988eb0270312b699aa27a05fc0e571df
Ticket: 480176ffffffffffffffffffffffffffffffffff
[global :v] makes wrong link
User & Date: dgp on 2001-11-09 20:43:03
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % proc test {} {
          global :v
          set v 1
          set :v 2
    }
    % test
    2
    % set :v
    1
    
    [global] is linking global variable :v
    to local variable v, rather than the
    correct local variable :v.
    
    Workaround: [global $varName] should
    be equivalent to 
    [upvar #0 $varName [namespace tail $varName]]
    so one could just define it so.
    
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "[global :v] makes wrong link"
  11. type changed to: "Bug"