Artifacts Associated With Ticket 1770591fffffffffffffffffffffffffffffffff
Ticket change [d23152f930] (rid 113488) by nyademo on 2007-08-09 05:05:33:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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. - 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: "nyademo"
- subsystem initialized to: "07. Variables"
- title initialized to:
can't read env var that is set in proc with global cmd.
- type initialized to: "Bug"
Ticket change [a507f5ca72] (rid 110304) by msofer on 2007-08-09 17:57:18:
- 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 - login: "msofer"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- title changed to: "traces on linked arrays do not fire"
- username: "msofer"
- icomment:
Ticket change [155beeb17a] (rid 124552) by msofer on 2007-08-09 19:21:28:
- closedate changed to: "2007-08-09T12:21:28"
- closer changed to: "msofer"
- 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! - login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- title changed to:
whole array write traces on compiled locals do not fire
- username: "msofer"