Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4f49fe57f4e1456986c7c6fe710877decac4f249
Ticket: f27930150a84a15b8becb835dae45674fa41b0c5
namespace ensemble subcommands with the empty string for a name
User & Date: pooryorick on 2017-04-28 13:47:00
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Some wild ensemble command behaviour when the name of the subcommand is the
    empty string:
    
    <verbatim>
    namespace eval n1 {
    	namespace export *
    	namespace ensemble create
    	namespace ensemble configure [namespace current] -map {
    		p1 {::puts yada}
    	}
    }
    n1 {} ;# -> yada
    proc n1:: {} {puts foo}
    n1 {} ;# -> yada
    namespace ensemble configure n1 -map {} ;
    n1 {} ;# -> foo
    
    namespace ensemble configure n1 -map {p1 {::puts yada} p2 {::puts bar}}
    n1 {} ;#-> unknown or ambiguous subcommand "": must be p1, or p2
    </verbatim>
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "21. [namespace]"
  15. title changed to:
    namespace ensemble subcommands with the empty string for a name
    
  16. type changed to: "Bug"