Artifacts Associated With Ticket 1718580fffffffffffffffffffffffffffffffff
Ticket change [bf28960358] (rid 102212) by lars_h on 2007-05-14 12:21:25:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Mistyping [lindex] where I meant [linsert], I discovered the following behaviour: [lindex {} end foo] does not throw an error, whereas [lindex {} foo] does! Or as an example session: % info patchlevel 8.5a6 % lindex {} foo bad index "foo": must be integer?[+-]integer? or end?[+-]integer? % lindex {} end foo % lindex a end foo bad index "foo": must be integer?[+-]integer? or end?[+-]integer? % lindex {} 0 foo % lindex {} -1 foo % lindex {} foo foo bad index "foo": must be integer?[+-]integer? or end?[+-]integer? This is probably due to lines 1108-1115 of tclListObj.c (v 1.46): once an out-of-bounds index is encountered, remaining indices are ignored. Indeed, % lindex a 1 foo % lindex a 0 foo bad index "foo": must be integer?[+-]integer? or end?[+-]integer? % lindex a -1 foo - foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lars_h"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "[lindex] accepts bad index"
- type initialized to: "Bug"
Ticket change [26dd0aebd2] (rid 88421) by dkf on 2007-05-14 19:37:18:
- assignee changed to: "hobbs"
- subsystem changed to: "14. List Object"
Ticket change [cbcdde47d9] (rid 95584) by dgp on 2007-05-14 21:31:16:
- assignee changed to: "kennykb"
Ticket change [def22e02fe] (rid 114931) by kennykb on 2007-09-04 04:28:13:
- closedate changed to: "2007-09-03T21:28:13"
- closer changed to: "kennykb"
- resolution changed to: "Fixed"
- status changed to: "Closed"