Artifacts Associated With Ticket 3599017fffffffffffffffffffffffffffffffff
Ticket change [fa62c95c09] (rid 91862) by pooryorick on 2012-12-31 16:19:07:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In the following example, the asnwer to [info exists ::var1] is "1", but the answer to [info exists var2(1)] is "0". Is this not inconsistent? set ::var1 [list 1 v1] trace add variable ::var1 {read} ::trace1 proc trace1 { args } { unset ::var1 set ::var1 [list 1 v1] } puts [info exists ::var1] array set ::var2 [list 1 v1] trace add variable ::var2 {read} ::trace2 proc trace2 { args } { array unset ::var2 array set ::var2 [list 1 v1] } puts [info exists ::var2(1)] - foundin initialized to: "current: 8.6.0"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "46. Traces"
- title initialized to: "trace that unsets and then sets and array"
- type initialized to: "Bug"
Ticket change [67e31eff5f] (rid 102968) by dgp on 2013-01-03 03:04:31:
- icomment:
The problem is not just consistency, but how that consistency came to be, whether by intent or accident, and what code out there relies on current behavior (think Tk). That said, it might be interesting to see what happens if TclVarTraceExists() makes another TclLookupVar() call after traces complete.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [116daecac1] (rid 95142) by dgp on 2013-01-03 03:12:19:
- closedate changed to: "2013-01-02T20:12:19"
- closer changed to: "dgp"
- icomment:
The same "inconsistency" is present back in Tcl 7.6. Whatever might arguably be "right", the stable choice is not to mess with this in the Tcl 8 time frame.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- username: "dgp"
Ticket change [297d2d16e5] (rid 258122) by serhiy.storchaka on 2026-10-15 11:29:05:
- icomment: "Closing: decided above."
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"