From: SourceForge.net <no...@so...> - 2012-12-31 16:19:09
|
Bugs item #3599017, was opened at 2012-12-31 08:19 Message generated for change (Tracker Item Submitted) made by pooryorick You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3599017&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 46. Traces Group: current: 8.6.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Poor Yorick (pooryorick) Assigned to: Don Porter (dgp) Summary: trace that unsets and then sets and array Initial Comment: 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)] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3599017&group_id=10894 |