Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 788c8980a821d109dabe95ee12229fd681b242ae
Ticket: 1675945fffffffffffffffffffffffffffffffff
[lindex] can explode List intrep
User & Date: dgp on 2007-03-07 17:37:10
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % set l [list a]
    a
    
    At this point $l holds a List
    intrep with an objv array of 
    length 1 and objv[0] is the
    string value "a".
    
    % lindex $l [lrepeat 10 0]
    a
    
    Now $l holds the same value,
    but with a much larger intrep.
    It's now an objv array of length 1
    with objv[0] a List with objv
    array of length 1 with its objv[0]
    a List ....etc going 10 levels deep...
    ..to a objv[0] holding the string
    value "a".
    
    This isn't exactly wrong.  That is
    a valid List intrep for the value,
    but it's far, far from the most efficient
    one available.
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "17. Commands I-L"
  11. title changed to: "[lindex] can explode List intrep"
  12. type changed to: "Bug"