Skip to content
Tcl Source Code History Of Ticket 1770591fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1770591fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1770591fffffffffffffffffffffffffffffffff

  1. Ticket change [d23152f930] (rid 113488) by nyademo on 2007-08-09 05:05:33:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl8.5a7 HEAD
      Windows2000SP2/Mingw
      
      
      proc testInit {} {
          global env
          if {![info exists env(TEST)]} {
              set env(TEST) testval
          }
      }
      testInit
      
      if {[catch {
          puts $env(TEST)
      } msg]} {puts Error:$msg}
      
      
      I expected to output "testval", but the result was
      Error:can't read "env(TEST)": no such variable.
      It caused a breakdown of the Tktable's init script too.
      
    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: "nyademo"
    10. subsystem initialized to: "07. Variables"
    11. title initialized to:
      can't read env var that is set in proc with global cmd.
      
    12. type initialized to: "Bug"
  2. Ticket change [a507f5ca72] (rid 110304) by msofer on 2007-08-09 17:57:18:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      The problem is not specific to env; it is also the likely cause of three current failures in the tcllib testsuite.
      
      It is also not specific to [global]; links created by [variable] or [upvar] fail in the same way.
      
      % trace add variable x write {puts x!;#}
      % proc q {} {global x; set x(1) 2}; q
      2
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. title changed to: "traces on linked arrays do not fire"
    6. username: "msofer"
  3. Ticket change [155beeb17a] (rid 124552) by msofer on 2007-08-09 19:21:28:

    1. closedate changed to: "2007-08-09T12:21:28"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      The problem is on write traces on compiled local arrays:
      % proc a {} {trace add variable x write {puts x!;#}; set x(1) 2}; a
      2
      
      Fixed in HEAD, test trace-2.6 added; tcllib's testsuite error-free too!
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. title changed to:
      whole array write traces on compiled locals do not fire
      
    9. username: "msofer"