Skip to content
Tcl Source Code History Of Ticket 1374778fffffffff
Login

History Of Ticket 1374778fffffffff

Artifacts Associated With Ticket 1374778fffffffff

  1. Ticket change [880ccf89d3] (rid 131803) by nobody on 2005-12-06 20:33:02:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The return for 
      lsearch -start X $list Value
      is different when X >= end
      and Value is the last or non-last list element.
      
      set l {a b c d a b c d}
      
      lsearch -start 5 $l d
        returns 7, as expected
      lsearch -start 999 $l d
        returns 7
      lsearch -start 999 $l c
        returns -1
      
    4. foundin initialized to: "obsolete: 8.4.12"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "17. Commands I-L"
    10. title initialized to: "lsearch -start inconsistent return"
    11. type initialized to: "Bug"
  2. Ticket change [a435663a12] (rid 110176) by dkf on 2005-12-08 15:56:02:

    1. assignee changed to: "dgp"
  3. Ticket change [6657d69c10] (rid 102698) by dkf on 2005-12-08 15:56:03:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Any opinion on whether to fix this for 8.4 or 8.5? Or should
      it just be closed as "meant to work that way"?
      
      Please assign back to me with the comment.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [75378352e7] (rid 105354) by dgp on 2005-12-08 23:58:55:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I would expect that
      
        lsearch -start $x $l $i
      
      with $x an integer would
      either return -1 (not found)
      or would return an integer
      greater than or equal to $x .
      
      [lsearch -start 999 $l d] => 7
      
      goes against my expectations,
      and suggests the search did
      not start at index 999 as
      instructed, but started at 
      index 7 instead.
      
      This looks like a bug to me,
      and as such ought to be fixed
      for 8.4.13.
      
      I'm willing to be talked
      out of that if this "feature"
      enables some particularly
      elegant coding of some particularly
      useful algorithm.  In that case,
      I'd want really good documentation.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  5. Ticket change [6337261552] (rid 92538) by dkf on 2005-12-09 21:40:24:

    1. closedate changed to: "2005-12-09T14:40:24"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed in HEAD and 8.4 branch (looking off the end of a list
      always finds nothing)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"