Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 53d9eedc12a4bef560ca258a50ec0a20f8da260a6d8ab32b5caf0716bd4cd529
Ticket: e86e178aff221cef6106ac775a38f2f18f5cadee
namespace deletion: trace that calls [apply], specifying the namespace, doesn't fire.
User & Date: pooryorick on 2018-01-19 20:43:47
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In the following example, the trace does not occur:
    
    <code><verbatim>
    namespace eval ns1 {
        proc p1 {} {}
        trace add command p1 delete [list ::apply [list args {
            puts hello
        } [namespace current]]]
        namespace delete [namespace current]
    }
    </verbatim></code>
    
    The problem is that in prepration to invoke <code>apply</code>, the namespace
    is looked up by name, but this fails for namespaces that are dying, causing
    <code>TclNRApplyObjCmd</code> to fail.
    
    Fixed in the bug-e593adf103-core-8 branch.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "21. [namespace]"
  15. title changed to:
    namespace deletion: trace that calls [apply], specifying the namespace, doesn't fire.
    
  16. type changed to: "Bug"