Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bea9b2df925ace9977234f8fed9f9dddce842a68c969c0ae2a8f84684adb6dc0
Ticket: 99e834bf33a434340b8500255c92404d9329a6bb
lseq, lindex end off by one
User & Date: kuehro on 2022-09-29 09:55:27
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    % set zs [lseq 1 4]
    1 2 3 4
    % puts [lindex $zs end]
    
    % puts [lindex $zs end-1]
    4
    
    % puts [llength $zs]
    4
    
    % foreach a $zs {puts $a}
    1
    2
    3
    4
    %
    
    
    lindex end should yield the last element.
    
  5. foundin changed to: "8.7a6"
  6. is_private changed to: "0"
  7. login: "kuehro"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8b649ffec3b8bf727a3ee2114be0992936bc8aa9"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "kuehro"
  14. subsystem changed to: "14. List Object"
  15. title changed to: "lseq, lindex end off by one"
  16. type changed to: "Bug"