Artifacts Associated With Ticket 1749596fffffffff
Ticket change [2c8dcee006] (rid 118924) by msofer on 2007-07-07 13:45:29:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
mig@uh:~$ tclsh8.4 % upvar 0 a(x) y % proc moo args {trace add variable ::a(x) unset moo; set ::y 1} % moo 1 % unset a % parray a % set y can't read "y": no such variable % set y 1 can't set "y": upvar refers to element in deleted array versus mig@uh:~$ /home/CVS/tcl_SF_clean/unix/tclsh % upvar 0 a(x) y % proc moo args {trace add variable ::a(x) unset moo; set ::y 1} % moo 1 % set y 1 % parray a a(x) = 1 What this means is that upvar in HEAD has snapshot semantics that are "less pure" than 8.4 - foundin initialized to: "obsolete: 8.5a7"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "07. Variables"
- title initialized to:
upvar and unset and traces: change in HEAD correct?
- type initialized to: "Bug"
Ticket change [6431afdee1] (rid 92718) by msofer on 2007-07-07 20:51:13:
- icomment:
Logged In: YES user_id=148712 Originator: YES OTOH both versions react similarly (impure snapshot semantics) to unsetting the element: % upvar 0 a(x) y % proc moo args {trace add variable ::a(x) unset moo; set ::y 1} % moo 1 % unset a(x) % set y 1 - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [8b2c98fc2c] (rid 127517) by msofer on 2007-07-07 20:58:24:
- icomment:
Logged In: YES user_id=148712 Originator: YES Tcl8.0.5 and Tcl8.3.4 behave just like Tcl8.4 in this respect - HEAD is really innovating, 8.5a5 has the traditional behaviour. This is due to the recent "streamlining" changes in variable deletion :(
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [3b0d0fc3d1] (rid 112662) by msofer on 2007-07-07 21:08:42:
- closedate changed to: "2007-07-07T14:08:42"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Originator: YES Stupid pilot error: same behaviour if the scripts really are identical, forgot the 'unset' in HEAD.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Deleted"
- username: "msofer"