Overview
| Artifact ID: | 39902d5f0359b79762cfe0d41773972e09746b86 |
|---|---|
| Ticket: | bb6108bb671bb697f10466325e4e9c612831b544
Array tracing not as documented |
| User & Date: | ehunter on 2015-10-05 20:39:27 |
Changes
- icomment:
This may also affect the test 1.11 in tests/trace.test: test trace-1.11 {read traces that modify the array structure} { catch {unset x} set x(bar) 0 trace variable x r {set x(foo) 1 ;#} trace variable x r {unset -nocomplain x(bar) ;#} array get x } {} The trace called first (which was defined second) would cause the array x to be empty by unsetting x(bar). I am not sure whether this constitutes the whole variable x being unset too. If so, then the traces should get removed, and the expected output is correct. If the array variable is still considered valid with no elements, then the output is incorrect, as the second trace would get run, setting x(foo) 1. Regards, Evan - login: "ehunter"
- mimetype: "text/plain"
- username: "Evan"