Overview
| Artifact ID: | afdcd68a2480715a5dd08fdfbdb6d74fdd001f80 |
|---|---|
| Ticket: | bb6108bb671bb697f10466325e4e9c612831b544
Array tracing not as documented |
| User & Date: | jan.nijtmans on 2015-10-07 08:07:27 |
Changes
- icomment:
I think test-case trace.test 1.11 is OK. It can be shown by doing an "array get x" a second time. Then the expected "foo 1" is produced: # set x(bar) 0 % trace variable x r {set x(foo) 1;#} % trace variable x r {unset -nocomplain x(bar) ;#} % array get x % array get x foo 1 % Explanation: The "array get x" first looks at what keys there are. Initially it's only "bar", so that array entry is read. But ... reading this entry fires the two triggers, removing element "bar" and adding "foo". But the addition of "bar" cannot be seen any more, because "array get" already handled the last key. So, I think trace.test 1.11 gives the expected result. Whatever bug there is (Donal can judge that better than I can), trace.test 1.11 is not involved with this 'bug'. - login: "jan.nijtmans"
- mimetype: "text/plain"