Overview
| Artifact ID: | 575025a48117af02b89fd5cd65bf5216e76d6e1f |
|---|---|
| Ticket: | 1337229fffffffffffffffffffffffffffffffff
crash on namespace delete with unset trace |
| User & Date: | msofer on 2005-10-26 16:38:09 |
Changes
- foundin changed to: "obsolete: 8.4.11"
- icomment:
Logged In: YES user_id=148712 (from clt) Also... The script below demonstrates a difference between unset traces triggered by [namespace delete] compared to direct unsetting of the variable. According to the docs the variable being unset should no longer exist once inside the trace command - and the traces should have been removed, but this doesn't occur in the [namespace delete] instance. proc Destroy {vtraced vidx op} { puts "trace info : [trace info variable $vtraced]" puts "info exists: [info exists $vtraced]" } namespace eval ::ref {set var1 AAA} trace add variable ::ref::var1 {unset} [list Destroy] namespace delete ::ref namespace eval ::other {set var2 BBB} trace add variable ::other::var2 {unset} [list Destroy] unset ::other::var2 Output on Windows Tcl 8.5a4: trace info : {unset Destroy} info exists: 1 trace info : info exists: 0 Tcl8.4.7 produces the same output. This is likely the same bug. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"