Overview
| Artifact ID: | dbd477c99730f13dea95ef8baa43fd31dda730af |
|---|---|
| Ticket: | 2929546fffffffffffffffffffffffffffffffff
"dict with" binds to varibles outside its scope |
| User & Date: | mpdanielson on 2010-01-11 00:54:40 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Setting a variable inside a "dict with" body changes the value of the dictionary and also changes the value of a variable with the same name outside of the body. In the following sequence, the value of ::a is changed when the value of the entry named "a" in the dictionary "x" is changed. I expected that only the dictionary would be changed. (paul) 101 % set tcl_patchLevel 8.6b1.1 (paul) 102 % set a A A (paul) 103 % dict set x a 1 a 1 (paul) 104 % set a A (paul) 105 % set x a 1 (paul) 106 % dict with x { set a } 1 (paul) 107 % dict with x { set a 2 } 2 (paul) 108 % set a 2 (paul) 109 % set x a 2 - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mpdanielson"
- subsystem changed to: "15. Dict Object"
- title changed to: ""dict with" binds to varibles outside its scope"
- type changed to: "Bug"