Artifacts Associated With Ticket 1080627fffffffff
Ticket change [dc1f5007a0] (rid 108084) by nobody on 2004-12-07 13:48:29:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
See comp.lang.tcl 2004-12-06 "very weird effect!". --------------------------- proc myapp {bn} { upvar 1 $bn b; append b xx } set env(XY) aa myapp env(XY) #puts "$env(XY)" #append env(XY) yy puts "$env(XY)" ---------------------------- As is, it writes just "aa" If you only uncomment the append-line then it writes "aaxxyy" If you then also uncomment the puts-line between myapp and append, then the "xx" is lost, and the script will just write "aa" and "aayy" - Very, weird, indeed. ----------------------------- Tested on: WindowsXP + Tcl8.4.8 and by Andreas Leitgeb on: tcl8.4.7 and with CVS-version 8.5 on linux - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "None"
- title initialized to: "unpredictable env+upvar"
- type initialized to: "Bug"
Ticket change [804914eef5] (rid 116847) by florim on 2004-12-07 21:39:34:
- icomment:
Logged In: YES user_id=1173505 submitted by: florim
- login: "florim"
- mimetype: "text/plain"
- username: "florim"
- icomment:
Ticket change [45b85479f0] (rid 99395) by dkf on 2004-12-07 22:24:04:
- assignee changed to: "hobbs"
- foundin changed to: "obsolete: 8.4.8"
- subsystem changed to: "08. Environment Variables"
Ticket change [3e78d6eabb] (rid 121275) by hobbs on 2005-10-05 12:36:29:
- closedate changed to: "2005-10-05T05:36:29"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 dup of 219372
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "hobbs"