Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd00e3d8d7b90555d78c1d6e4d792227b647a5d0
Ticket: 1180451fffffffffffffffffffffffffffffffff
upvar to array element and trace non-functional?
User & Date: msofer on 2005-04-11 02:56:27
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This behaviour is present since (at least) Tcl8.3. Is
    it a bug? I did not find it documented ...
    
    % set a(1) 2
    2
    % trace add variable a read {puts READ;#}
    % set a(1)
    READ
    2
    % upvar 0 a(1) x
    % set x
    2
    % set y 1
    1
    % trace add variable y read {puts READ;#}
    % set y
    READ
    1
    % upvar 0 y x
    % set x
    READ
    1
    % trace add variable a(1) read {puts READ2;#}
    % upvar 0 a(1) x
    % set x
    READ2
    2
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "46. Traces"
  10. title changed to: "upvar to array element and trace non-functional?"
  11. type changed to: "Bug"