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
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "07. Variables"
- title changed to:
let upvar only create variables in the current context
- type changed to: "RFE"