Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 04e5bdc5790929584ee5e770b358a7a25ef29245a14738a95bd3da0effdc5ad6
Ticket: b2964460b617adb8399bc67ca691e1039b49bd0b
persistent namespace import: routine resolution when target routine is deleted and recreated
User & Date: pooryorick on 2019-01-09 00:18:54
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,
    
    <code><verbatim>
    	namespace eval n1 {
    		namespace export *
    		proc hello {} {
    			puts hello
    			rename hello {}
    			proc hello {} {
    				puts goodbye
    			}
    		}
    	}
    
    	namespace eval n2 {
    		namespace import [namespace parent]::n1::hello
    		hello
    		hello
    	}
    </verbatim></code>
    
    produces the error <code> invalid command name "hello"</code>.
    
    However, if <code>rename hello {}</code> is removed, there is no error.
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Minor"
  10. status changed to: "Open"
  11. submitter changed to: "pooryorick"
  12. subsystem changed to: "21. [namespace]"
  13. title changed to:
    namespace import: routine resolution when target routine is deleted and recreated
    
  14. type changed to: "Bug"