Skip to content
Tcl Source Code History Of Ticket 46450b464ea031da
Login

History Of Ticket 46450b464ea031da

Artifacts Associated With Ticket 46450b464ea031da

  1. Ticket change [e754f766d1] (rid 154148) by pooryorick on 2017-06-02 11:21:14:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      <code><verbatim>
      namespace eval ns1 {
      	namespace delete [namespace current]
      	namespace eval [namespace current] {}
      	namespace eval doc {}
      	set doc::var1 val1
      	::apply [list {} {
      		puts $doc::var1 ;# -> can't read "$doc::var1": no such variable
      	} [namespace current]]
      }
      </verbatim></code>
      
    5. foundin initialized to: "8.7"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "e476148cded301ffff84bcdc432536dc0c949e88"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "21. [namespace]"
    15. title initialized to: "A namespace loses track of itself"
    16. type initialized to: "Bug"
  2. Ticket change [b4abfa9f27] (rid 154151) by pooryorick on 2017-06-02 12:16:48:

    1. comment changed to:
      <code><verbatim>
      namespace eval ns1 {
      	namespace delete [namespace current]
      	namespace eval [namespace current] {}
      	namespace eval doc {}
      	set doc::var1 val1
      	::apply [list {} {
      		puts $doc::var1 ;# -> can't read "$doc::var1": no such variable
      	} [namespace current]]
      }
      </verbatim></code>
      
      And here is an example where two variables, both having the name
      $ns1::doc::var1 print their different values:
      
      <code><verbatim>
      namespace eval ns1 {
      	namespace delete [namespace current]
      	namespace eval [namespace current] {}
      	namespace eval doc {}
      	set doc::var1 val1
      	::apply [list {} {
      		namespace eval doc {}
      		set doc::var1 val2
      		puts $doc::var1
      	} [namespace current]]
      	puts $doc::var1
      }
      </verbatim></code>
      
    2. login: "pooryorick"
    3. mimetype: "text/plain"