Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a03d6457425aa63e134cfca75af18cd0d8e39355
Ticket: 600812ffffffffffffffffffffffffffffffffff
upvar can create unusable variable
User & Date: dgp on 2003-11-10 22:33:38
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    It seems this misfeature is
    documented in upvar.n, and
    has been documented this
    way "forever" (since at least
    Tcl 7.4).  Makes me wonder
    whether this made sense at
    one pont, and variable parsing
    rules have changed over the
    years to more aggressively
    recognize arrays?
    
    Seems we ought to have a 
    brief TIP, if only to let the
    wise old men have a look and
    confirm we're not overlooking
    something.
    
    Otherwise, the patch looks fine.
    If it's not too much trouble, I'd
    update your new tests to use
    the -returnCodes option.  You
    might also want to note in your
    new code in ObjMakeUpvar
    that your detection of a bad name
    for a scalar is consistent (and must
    remain consistent) with the code
    in TclObjLookupVar (currently
    line 447).
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"