From: SourceForge.net <no...@so...> - 2012-09-14 08:56:51
|
Feature Requests item #1773103, was opened at 2007-08-13 07:04 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=360894&aid=1773103&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 21. [namespace] Group: None Status: Open Resolution: Remind Priority: 8 Private: No Submitted By: Arnulf Wiedemann (wiede) Assigned to: Donal K. Fellows (dkf) Summary: enhancement for namespace ensemble usage reporting Initial Comment: 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; } ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2012-09-14 01:56 Message: It might actually be done as part of TIP #380. ---------------------------------------------------------------------- Comment By: Jan Nijtmans (nijtmans) Date: 2012-09-14 01:39 Message: Ping! Is this still being considered? ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2009-07-26 11:28 Message: 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. ---------------------------------------------------------------------- Comment By: Arnulf Wiedemann (wiede) Date: 2008-02-10 10:49 Message: 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. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2008-01-21 07:02 Message: Logged In: YES user_id=79902 Originator: NO I've no plans on this one way or the other at the moment. ---------------------------------------------------------------------- Comment By: Arnulf Wiedemann (wiede) Date: 2008-01-18 09:40 Message: 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? ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2007-12-30 07:40 Message: Logged In: YES user_id=79902 Originator: NO I'm more likely to do this as an extra flag bit ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=360894&aid=1773103&group_id=10894 |