Skip to content
Tcl Source Code History Of Ticket 309cfea3a2
Login

History Of Ticket 309cfea3a2

Artifacts Associated With Ticket 309cfea3a2

  1. Ticket change [5c72ae30c9] (rid 219038) by ambaker1 on 2023-10-03 15:46:41:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      The "append" command does not trigger variable read traces.
      
      ```
      # Bug with read trace with Tcl append command.
      proc ReadTrace {name1 name2 op} {
          upvar 1 $name1 var
          set var foo
      }
      trace add variable x read ReadTrace
      # lappend triggers the read-trace, modifying x before writing to it.
      set x hello
      puts [lappend x bar]; # foo bar
      # lset triggers it as well.
      set x hello
      puts [lset x end+1 bar]; # foo bar
      # append, on the other hand, does not trigger the read trace.
      set x hello
      puts [append x { bar}]; # hello bar
      puts $x; # foo
      ```
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "ambaker1"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "7a509cad0db427d3ca1119e0562512ea2f5279d6"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "ambaker1"
    14. subsystem initialized to: "07. Variables"
    15. title initialized to: "Append does not trigger variable read traces"
    16. type initialized to: "Bug"
  2. Ticket change [ab2890c368] (rid 253840) by apnadkarni on 2026-05-24 00:56:42:

    1. icomment:
      I'm not sure I see the problem. I get the following (8.6.17) running the above script.
      
      ```
      foo bar
      foo bar
      hello bar
      foo
      ```
      
      Looks ok to me.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"