Artifacts Associated With Ticket 1773103
Ticket change [ea52ea7c23] (rid 103350) by wiede on 2007-08-13 14:04:17:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized 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; } - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "wiede"
- subsystem initialized to: "21. [namespace]"
- title initialized to:
enhancement for namespace ensemble usage reporting
- type initialized to: "RFE"
Ticket change [132f038e58] (rid 124167) by msofer on 2007-08-13 21:13:02:
- assignee changed to: "dkf"
Ticket change [a334b38684] (rid 110013) by dkf on 2007-12-30 22:40:08:
- icomment:
Logged In: YES user_id=79902 Originator: NO I'm more likely to do this as an extra flag bit
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [92fbf97bf6] (rid 105741) by wiede on 2008-01-19 00:40:34:
- icomment:
Logged In: YES user_id=558925 Originator: YES An extra flag would be fine with me. Are there any plans already if/when to add such a flag?
- login: "wiede"
- mimetype: "text/plain"
- username: "wiede"
- icomment:
Ticket change [0cf93d3588] (rid 114277) by dkf on 2008-01-21 22:02:00:
- icomment:
Logged In: YES user_id=79902 Originator: NO I've no plans on this one way or the other at the moment.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [551d0f173d] (rid 94073) by wiede on 2008-02-11 01:49:57:
- icomment:
Logged In: YES user_id=558925 Originator: YES Having spent some thoughts again on the problem, I think a good solution would be if I could get something like an ensemble "wrongNumArgs" handler similar to the ensemble unknown handler which should be settable via an option.
- login: "wiede"
- mimetype: "text/plain"
- username: "wiede"
- icomment:
Ticket change [fbe7e8d066] (rid 108140) by dkf on 2009-07-14 17:54:44:
- priority changed to: "7 High"
- resolution changed to: "Remind"
Ticket change [869c68c5ea] (rid 131544) by dkf on 2009-07-27 01:28:29:
- icomment:
Update: it would have been nice to have had this when reworking [history] as an ensemble. I found a (horrific) workaround, but this would have been far more elegant.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [e0bfe6f2e2] (rid 87334) by dkf on 2009-07-27 01:28:57:
- icomment:
Update: it would have been nice to have had this when reworking [history] as an ensemble. I found a (horrific) workaround, but this would have been far more elegant.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dkf"
- icomment:
Ticket change [44f00da8d3] (rid 116794) by dkf on 2012-05-26 20:16:49:
- icomment:
IP - Comment Removed: 82.42.214.208
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [6229f318d6] (rid 92367) by nijtmans on 2012-09-14 15:39:37:
- icomment:
Ping! Is this still being considered?
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [385c2f9862] (rid 112194) by dkf on 2012-09-14 15:56:51:
- icomment:
It might actually be done as part of TIP #380.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [12518386e8] (rid 95285) by dkf on 2012-09-14 15:59:39:
- icomment:
Oops, that was just for TclOO, not [namespace ensemble].
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [4d9dc6291e] (rid 142560) by dgp on 2015-07-20 15:53:44:
- 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"