Overview
| Artifact ID: | e487a64ff7b3affd5bdcb205a419feafe4ab4c42 |
|---|---|
| Ticket: | 3019348fffffffffffffffffffffffffffffffff
Nested lset can modify list on error |
| User & Date: | andygoth on 2010-06-22 01:32:21 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
My expectation is that when lset throws an error, it won't modify the list. However, the following script shows otherwise: % set foo {} % lset foo 0 0 x x % lset foo 0 1 x {x x} % lset foo 1 0 x {x x} x % lset foo 1 1 x {x x} {x x} % lset foo 2 1 x list index out of range % set foo {x x} {x x} {} % lset foo 3 0 x {x x} {x x} {} x % lset foo 3 1 x {x x} {x x} {} {x x} The command [lset foo 2 1 x] throws an error but also adds an empty element to the end of the list. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "andygoth"
- subsystem changed to: "17. Commands I-L"
- title changed to: "Nested lset can modify list on error"
- type changed to: "Bug"