Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b78675624b3d05816396a93e46a4dfbcdfd0829b
Ticket: 2673163fffffffffffffffffffffffffffffffff
Unwanted integer affinity of [upvar]
User & Date: dgp on 2009-03-19 03:48:48
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    
    On a superficial level, the code doesn't follow
    the usual Tcl Engineering Manual conventions, and
    would be better reformatted before commit.
    
    On substance, the decision to accept comes down
    to a judgment on whether to object to replacing
    one error with another, as demonstrated in the
    changes to test upvar-8.3.  I'm the wrong one
    to make that judgment.  At the moment I just don't
    care.  I suspect when I'm in a better mood, I
    still won't care.  Folks should just code the
    level explicitly.
    
    As I understand it, the identifiable case that
    is most clearly an actual bug to fix is
    
        upvar 1 x
    
    so it would be good to have a test case
    for that, and check that the docs are clear
    that the interpretation choice on it is
    correct.
    
    In the niggly details, I don't see the value
    of setting name to "1" in TclObjGetFrame().
    The value isn't used.
    
    I'm left wondering about the impact on
    other commands that have level values which
    are optional, such as [uplevel].  Not curious
    enough to go looking though.  If there's a
    general problem, it's best to commit all
    solutions at once.
    
    
  3. login: "dgp"
  4. mimetype: "text/plain"
  5. username: "dgp"