Overview
| Artifact ID: | 89f7b1b06ac5119116f808cf5db16b1da9597d07 |
|---|---|
| Ticket: | 2774581fffffffffffffffffffffffffffffffff
cross-interp alias uplevel behaviour |
| User & Date: | cnassau on 2009-04-19 16:55:51 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
The following doesn't feel right: interp create other other eval { proc myforeach {var script} { upvar 1 $var v foreach v {1 2 3} { uplevel 1 $script } } set myvar myvar-remote myforeach stuff { puts remote,$myvar,$stuff } } interp alias {} myforeach other myforeach set myvar myvar-main myforeach stuff { puts main,$myvar,$stuff } The output is remote,myvar-remote,1 remote,myvar-remote,2 remote,myvar-remote,3 main,myvar-remote,1 main,myvar-remote,2 main,myvar-remote,3 Here $myvar is taken from interpreter "other" in both cases: I would have expected "main,myvar-main,1..3" in the second three lines. - foundin changed to: "obsolete: 8.5.7"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "cnassau"
- subsystem changed to: "22. [proc] and [uplevel]"
- title changed to: "cross-interp alias uplevel behaviour"
- type changed to: "Bug"