Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 497900992a9c63182eb04292ca42201fc5ae9f31
Ticket: 1587442fffffffffffffffffffffffffffffffff
let upvar only create variables in the current context
User & Date: msofer on 2006-10-30 20:05:56
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Currently 
       upvar 1 x ::a::y
    will create a variable y in namespace a, linked to the
    variable x in the caller's context.
    
    This "action at a distance" is undocumented and
    possibly confusing.  It is better IMO to force upvar to
    only create variables in the current context (namespace
    or proc call frame).
    
    Attached a patch that implements and documents this
    feature. Note that the tests var-3.7/8 test for the
    current behaviour.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "07. Variables"
  11. title changed to:
    let upvar only create variables in the current context
    
  12. type changed to: "RFE"