Skip to content
Tcl Source Code History Of Ticket 1905809
Login

History Of Ticket 1905809

Artifacts Associated With Ticket 1905809

  1. Ticket change [136f2a1769] (rid 124217) by v_f on 2008-03-02 19:10:32:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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?
      
      
    4. foundin initialized to: "obsolete: 8.5.1"
    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: "v_f"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to:
      lreplace man page description for negative index confusing
      
    12. type initialized to: "Bug"
  2. Ticket change [2a949cbcbe] (rid 118601) by dkf on 2008-03-16 19:38:26:

    1. closedate changed to: "2008-03-16T12:38:26"
    2. closer changed to: "dkf"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"