Skip to content
Tcl Source Code History Of Ticket e39cb3f462
Login

History Of Ticket e39cb3f462

Artifacts Associated With Ticket e39cb3f462

  1. Ticket change [62868ca95d] (rid 194420) by pooryorick on 2021-05-18 21:43:56:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      At least up until commit [2e5531f5f88d047f], in the following script,  the
      command being deleted is succesfully called during first trace, but not during
      the second trace.  The difference is that in the second script "p1" is not
      resolved even though ns2, which is in the process of being deleted, is in the
      path.  The namespace is not yet fully deleted though, and p1 should still exist
      because the trace on it is still in progress.  The success of the first trigger
      illustrates that the name still exists and that the routine can still be
      accessed using a fully-qualified name.  Likewise, "p1" should be succesfully
      resolved during the second trigger.
      
      A related test case, namespace-51.13, includes an old comment asking whether
      the outcome of the test should instead be what is proposed here.
      
      
      
      <code><verbatim>
      namespace eval ns1 {
      	proc p1 caller {
      		lappend [namespace parent]::res $caller
      	}
      }
      
      
      namespace eval ns1a {
      	namespace path [namespace parent]::ns1
      
      	proc t1 {old new op} {
      		$old t1
      	}
      }
      
      namespace eval ns2 {
      	proc p1 caller {
      		lappend [namespace parent]::res $caller
      	}
      }
      
      namespace eval ns2a {
      	namespace path [namespace parent]::ns2
      
      	proc t1 {old new op} {
      		[namespace tail $old] t2
      	}
      }
      
      
      trace add command ns1::p1 delete ns1a::t1
      namespace delete ns1
      
      trace add command ns2::p1 delete ns2a::t1
      namespace delete ns2
      
      puts $res ;# -> t1 
      </verbatim></code>
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Minor"
    10. status initialized to: "Open"
    11. submitter initialized to: "pooryorick"
    12. subsystem initialized to: "21. [namespace]"
    13. title initialized to:
      namespace is removed from other namespace paths before deletion is complete
      
    14. type initialized to: "Bug"
  2. Ticket change [a7f70676da] (rid 194428) by pooryorick on 2021-05-19 07:16:08:

    1. icomment: "Fixed in [bdd005f3301eec51]."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [62eacf848a] (rid 194700) by pooryorick on 2021-06-09 10:25:34:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"