Overview
| Artifact ID: | 31b5928c23fcbf4ee939993e2a55c8fb8a0fb839 |
|---|---|
| Ticket: | 57e44de76e71ba13b896571404da2451fcc6c4f1
Array Read Trace fires only if Array has been written to |
| User & Date: | venkat on 2015-07-05 20:07:16 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
=== start of a.tcl === proc ::stracer {junk var op} { if {$var == ""} return switch $op { r { puts "Read Fired" set ::a($var) 5 } w { puts "Write Fired" } } } trace variable ::a rw ::stracer # set a(test2) 5 puts "$a(test1)" === end of a.tcl === Running: % tclsh8.6 a.tcl can't read "a(test1)": no such variable while executing "puts "$a(test1)"" (file "a.tcl" line 17) Now remove the commented line (Remove # in "# set a(test2) 5) % tclsh8.6 a.tcl Write Fired Read Fired 5 ---- Why does the write to the array change the behaviour of the read trace? - foundin changed to: "8.6.4"
- is_private changed to: "0"
- login: "venkat"
- priority changed to: "5 Medium"
- private_contact changed to: "1fb8c275493b1f1dcf8db46d6d541794a011947f"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "venkat"
- subsystem changed to: "07. Variables"
- title changed to:
Array Read Trace fires only if Array has been written to
- type changed to: "Bug"