Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-08-13
21:20 • Closed ticket [1773107fff]: enhancement for namespace ensemble usage reporting <... artifact: e24a0af948 user: msofer
14:16 • New ticket [1773107fff]. artifact: e18d2406fc user: wiede

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.