Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9419b7a5ae4cf557076a8958261610e97fa19326f11501723f6527b3321b803d
Ticket: e593adf103ea27b765400ef588d49bb6f47ae7f0
Resources of a namespace are still available after the namespace is deleted.
User & Date: pooryorick on 2018-01-02 12:32:23
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The following script does not fail:
    
    <code><verbatim>
    namespace eval n1 {
        proc p1 {} {
            puts hello
        }
        namespace delete [namespace current] 
        p1
    }
    </verbatim></code>
    
    While this is known and documented, it's not ideal.  The current behaviour is probably a concession to the subtleties of resource cleanup, particularly where object systems built on namespaces are involved.
    
  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: "71704ce2d4c352a390315542f9f0fc4e7b2acae9"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "18. Commands M-Z"
  15. title changed to:
    Resources of a namespace are still available after the namespace is deleted.
    
  16. type changed to: "Bug"