Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d27780674cf9d3afe26aafcf48214f684f772102
Ticket: 466037ffffffffffffffffffffffffffffffffff
Optimise getting the head/tail of a list
User & Date: msofer on 2001-10-01 19:13:01
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    A  small change to Andreas' description, to allow the
    representation of "end" ('-0'?): let '-1' stand for 'end',
    so that the previous description becomes:
    
    So [lindex $foo -1] just pushes an empty object, [lindex
    $foo end-1] passes index '-2' to the bytecode and [lindex
    $foo $idx] compiles to something which goes through
    TclGetForIndex ? Could work.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"