Overview
| Artifact ID: | 136f2a17692ce31a7c49ad9adad26f4aac2a8099 |
|---|---|
| Ticket: | 1905809fffffffffffffffffffffffffffffffff
lreplace man page description for negative index confusing |
| User & Date: | v_f on 2008-03-02 19:10:32 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
lreplace man page states: "If last is less than zero but greater than first, then any specified elements will be prepended to the list." What happens if last is less than zero and equal to first? My use case is to search the list for an element and then delete it if it exists. Otherwise the list should be unmodified: % set L {a b c} a b c % set i [lsearch $L x] -1 % lreplace $L $i $i a b c This obviously works, but is it guaranteed? - foundin changed to: "obsolete: 8.5.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "v_f"
- subsystem changed to: "17. Commands I-L"
- title changed to:
lreplace man page description for negative index confusing
- type changed to: "Bug"