Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 434764c05c202f527db8dc6554fbedd96b8daf9b
Ticket: f27930150a84a15b8becb835dae45674fa41b0c5
namespace ensemble subcommands with the empty string for a name
User & Date: dkf on 2017-05-02 10:31:01
Changes

  1. closedate changed to: "2457875.93821101"
  2. closer changed to: "dkf"
  3. icomment:
    The behaviour you describe is correct. There is no bug.
    <p>
    When an ensemble has an empty <tt>-map</tt> (and empty <tt>-subcommands</tt> list), it uses the exported commands of the namespace as the set of subcommands. When an ensemble has a non-empty <tt>-map</tt>, it uses the keys of that map to determine what the set of subcommands is. <i>In both cases</i>, it then finds whether there is an exact match for the subcommand name against its set of possible subcommands, and if there is no exact match and the <tt>-prefix</tt> option is true (the default), then sees whether the provided subcommand name is a prefix of exactly one subcommand name. (If there's two or more subcommands that could match, that's an error. The empty string is a prefix of all other strings of course.)
    
  4. login: "dkf"
  5. mimetype: "text/html"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "dkf"