enhancement for namespace ensemble usage reporting
Closed / Duplicate1773107fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-08-13 14:16:50
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;
}
msoferplain2007-08-13 21:20:36
Logged In: YES user_id=148712 Originator: NO same as #1773103
Log in (anonymous is fine) to add a comment.