Artifacts Associated With Ticket 3045123
Ticket change [de6ed6a7da] (rid 114851) by andygoth on 2010-08-15 01:33:42:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Copied from http://wiki.tcl.tk/1485 : According to the man page, "[linsert] produces a new list from list by inserting all of the element arguments just before the index’th element of list." When doing end-relative indexing, this definition doesn't match the actual behavior. To explain how index is interpreted, the [linsert] man page refers to the [string index] man page, which says that end indicates the last element. From this I expect that [linsert {0 1 2} end x] will return {0 1 x 2}, the result of inserting x just before the end element of the list, which is 2. However, it actually returns {0 1 2 x}, so when doing end-relative indexing it inserts the new elements just after the indicated index. An alternative, more plausible explanation is that it inserts the new elements such that the first or last of the inserted elements will occupy the indicated index. Suggest updating the documentation to resolve this inconsistency. - foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "andygoth"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "linsert man page end indexing inconsistency"
- type initialized to: "Bug"
Ticket change [a9cf5d2072] (rid 99214) by andygoth on 2010-08-15 08:35:55:
- icomment:
Oops, make that http://wiki.tcl.tk/1482 .
- login: "andygoth"
- mimetype: "text/plain"
- username: "andygoth"
- icomment:
Ticket change [534a108b5c] (rid 93731) by dkf on 2010-08-21 23:58:26:
- closedate changed to: "2010-08-21T16:58:26"
- closer changed to: "dkf"
- icomment:
allow_comments - 1
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"