Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4d9dc6291eee47a0e7c6a27f49c7895c90e71f19
Ticket: 1773103fffffffffffffffffffffffffffffffff
enhancement for namespace ensemble usage reporting
User & Date: dgp on 2015-07-20 15:53:44
Changes

  1. closer changed to: "nobody"
  2. comment changed to:
    If an namespace ensemble command is invoked without a subcommand the normal Tcl_WrongNumArgs message is called.  For Itcl I would need to do a different reporting. It would work if at the beginning if aan unknown handler exists that would be called instead:
    
        if (objc < 2) {
    
    +        if (ensemblePtr->unknownHandler != NULL) {
    +            goto unknownOrAmbiguousSubcommand;
    +        }
    
            Tcl_WrongNumArgs(interp, 1, objv, "subcommand ?argument ...?");
            return TCL_ERROR;
        }
    
  3. icomment:
    
    I'm coding an Itcl workaround for this, but sending
    missing subcommand errors to the unknown dispatcher
    would be a much better idea.  It appears to be specced
    to handle that case.
    
  4. login: "dgp"
  5. mimetype: "text/plain"
  6. severity changed to: "Minor"
  7. title changed to: "enhancement for namespace ensemble usage reporting"