Skip to content
Tcl Source Code History Of Ticket e593adf103
Login

History Of Ticket e593adf103

Artifacts Associated With Ticket e593adf103

  1. Ticket change [9419b7a5ae] (rid 160002) by pooryorick on 2018-01-02 12:32:23:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized 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 initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "71704ce2d4c352a390315542f9f0fc4e7b2acae9"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "18. Commands M-Z"
    15. title initialized to:
      Resources of a namespace are still available after the namespace is deleted.
      
    16. type initialized to: "Bug"
  2. Ticket change [a8d5297c47] (rid 160052) by pooryorick on 2018-01-06 19:08:01:

    1. 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.
      
      In commit [3825265b17], namespace cleanup routines are simplified and
      rationalized.  Once a namespace is deleted, the global namespace becomes the
      current namespace.  A namespace is considered deleted once all traces and
      routines associated with the deletion are complete.  Until that time, the
      namespace remains available and fully functional.
      
      One effect of these changes is that in a coroutine <code>yield</code> and
      <code>yieldto</code> work as they normally do even after the namespace of the
      routine that provied level 1 for the coroutine is deleted.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [c2e788052b] (rid 160053) by pooryorick on 2018-01-06 19:17:26:

    1. 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.
      
      In commit [3825265b17], namespace cleanup routines are simplified and
      rationalized.  Once a namespace is deleted, the global namespace becomes the
      current namespace.  A namespace is considered deleted once all traces and
      routines associated with the deletion are complete.  Until that time, the
      namespace remains available and fully functional.
      
      One effect of these changes is that in a coroutine <code>yield</code> and
      <code>yieldto</code> work as they normally do even after the namespace of the
      routine that provied level 1 for the coroutine is deleted.
      
      The <code>activationCount</code> member of the <code>Namespace</code> structure
      has been deleted, since there are no longer "phantom" namespaces available at
      other levels whose current namespace was the deleted. Instead, the current
      namespace for those levels is the global namespace.
      
    2. login: "pooryorick"
    3. mimetype: "text/plain"