Skip to content
Tcl Source Code History Of Ticket 1718580
Login

History Of Ticket 1718580

Artifacts Associated With Ticket 1718580

  1. Ticket change [bf28960358] (rid 102212) by lars_h on 2007-05-14 12:21:25:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "lars_h"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to: "[lindex] accepts bad index"
    12. type initialized to: "Bug"
  2. Ticket change [26dd0aebd2] (rid 88421) by dkf on 2007-05-14 19:37:18:

    1. assignee changed to: "hobbs"
    2. subsystem changed to: "14. List Object"
  3. Ticket change [cbcdde47d9] (rid 95584) by dgp on 2007-05-14 21:31:16:

    1. assignee changed to: "kennykb"
  4. Ticket change [def22e02fe] (rid 114931) by kennykb on 2007-09-04 04:28:13:

    1. closedate changed to: "2007-09-03T21:28:13"
    2. closer changed to: "kennykb"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"