Overview
| Artifact ID: | 4d9dc6291eee47a0e7c6a27f49c7895c90e71f19 |
|---|---|
| Ticket: | 1773103fffffffffffffffffffffffffffffffff
enhancement for namespace ensemble usage reporting |
| User & Date: | dgp on 2015-07-20 15:53:44 |
Changes
- closer changed to: "nobody"
- 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; } - 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.
- login: "dgp"
- mimetype: "text/plain"
- severity changed to: "Minor"
- title changed to: "enhancement for namespace ensemble usage reporting"