namespace deletion: trace that calls [apply], specifying the namespace, doesn't fire.
Opene86e178aff221cef6106ac775a38f2f18f5cadeeCreated 9 years agoUpdated 9 years ago
Descriptionwiki2018-01-19 20:43:47
In the following example, the trace does not occur:
namespace eval ns1 {
proc p1 {} {}
trace add command p1 delete [list ::apply [list args {
puts hello
} [namespace current]]]
namespace delete [namespace current]
}
The problem is that in prepration to invoke apply, the namespace
is looked up by name, but this fails for namespaces that are dying, causing
TclNRApplyObjCmd to fail.
Fixed in the bug-e593adf103-core-8 branch.
Log in (anonymous is fine) to add a comment.