Skip to content
Tcl Source Code History Of Ticket 1749596
Login

History Of Ticket 1749596

Artifacts Associated With Ticket 1749596

  1. Ticket change [2c8dcee006] (rid 118924) by msofer on 2007-07-07 13:45:29:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.5a7"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "07. Variables"
    11. title initialized to:
      upvar and unset and traces: change in HEAD correct?
      
    12. type initialized to: "Bug"
  2. Ticket change [6431afdee1] (rid 92718) by msofer on 2007-07-07 20:51:13:

    1. 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
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [8b2c98fc2c] (rid 127517) by msofer on 2007-07-07 20:58:24:

    1. 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 :(
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [3b0d0fc3d1] (rid 112662) by msofer on 2007-07-07 21:08:42:

    1. closedate changed to: "2007-07-07T14:08:42"
    2. closer changed to: "msofer"
    3. 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.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Deleted"
    8. username: "msofer"