Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4714fe20fc9a77959f3ed490e773d352f5cf34d5d8033e7bbc7cfccb54f65dd9
Ticket: c1a376375e0e648830cf52ca984a9ace563c0706
imported namespace ensemble command name distorted during deletion trace on the import
User & Date: pooryorick on 2020-08-31 19:27:28
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 should result in an error to the effect that the routine
    doesn't exist.  Instead, it returns the full path of the deleted routine with
    the empty string in place of the tail of the deleted routine.
    
    <code><verbatim>
    #! /usr/bin/env tclsh
    
    
    proc traced {oldname newname op} {
    	set origin [namespace origin $oldname]
    	puts [list origin 1 $origin]
    	rename $origin {}
    	set origin [namespace origin $oldname]
    	puts [list origin 2 $origin]
    
    }
    
    namespace export *
    
    namespace eval ns1 {
    	namespace ensemble create
    }
    
    namespace eval ns2 {
    	namespace import ::ns1
    	trace add command ns1 delete traced
    }
    
    rename ns1 {}
    </verbatim></code>
    
  5. foundin changed to: "all versions"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "pooryorick"
  13. subsystem changed to: "21. [namespace]"
  14. title changed to:
    imported namespace ensemble command name distorted during deletion trace on the import
    
  15. type changed to: "Bug"