Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dbdb2a9c2556da16e9ba118a4c96ea7b4d57c509
Ticket: 1178805fffffffffffffffffffffffffffffffff
empty lists cause nasty surprises
User & Date: jenglish on 2005-04-08 02:53:54
Changes

  1. icomment:
    Logged In: YES 
    user_id=68433
    
    It's not entirely clear whether the manpage guarantees this
    behavior or not, but it does seem strongly implied.
    
    "If listPtr is not already a list object,
    Tcl_ListObjGetElements will attempt to convert it  to one;
    if the conversion fails, it returns TCL_ERROR [ ... ]
    Otherwise it returns TCL_OK [...]"
    
    I always took that to mean that if
    Tcl_ListObjGetElements(..., objPtr, ..) returns TCL_OK, then
    objPtr is now a list object (which I also took to mean, "the
    typePtr and internal representation fields are set as
    described above").
    
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"