Overview
| Artifact ID: | abebe377719e3b80731aaec060f277084838d0ef9c10576878417a8888abea8f |
|---|---|
| Ticket: | e87bcf819f03cea4e35dca24cac7228766f53b0f
[array for] fails to detect array change made through upvar |
| User & Date: | dgp on 2018-04-22 19:10:03 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Contrast these two: % proc demo {} { array set a {m 1 n 2 o 3 p 4} try { array for {k v} a {unset a(n)} } on error {m} { puts "ERROR: $m" } finally { puts [array get a] } } % demo ERROR: array changed during iteration p 4 m 1 o 3 % proc demo {} { array set a {m 1 n 2 o 3 p 4} upvar 0 a(n) l try { array for {k v} a {catch {unset l}} } on error {m} { puts "ERROR:$m" } finally { puts [array get a] } } % demo p 4 m 1 o 3 - is_private changed to: "0"
- login: "dgp"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "07. Variables"
- title changed to:
[array for] fails to detect array change made through upvar
- type changed to: "Bug"