Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 128b18629d92f3b275db8d60789a952179279b0b
Ticket: 1890831fffffffffffffffffffffffffffffffff
Lrange cleanup and in-place optimization
User & Date: dgp on 2008-02-12 00:40:23
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    The patch intrudes a bit into the
    internal rep of the "list" Tcl_ObjType
    with the cast to (List *).  I'd like a
    slight refactoring better where that
    code got moved into tclListObj.c as
    some internal routine called by
    Tcl_LrangeObjCmd().  Just a preference
    to put as much of the code needing to know
    about "list" intReps over in tclListObj.c
    as we can.  Not a requirement, but something
    nice to do.
    
    I know we're not "pure" by that measure
    currently.  It's about preference and
    direction.
    
    Might be interesting to try the K-free K
    as well:
    
    lrange $l[unset l] 0 end-1
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"