Skip to content
Tcl Source Code View Ticket
Login

View Ticket

ensemble parameters in error msg - unclear quoting

Closed / Fixedf961d7d1dd7ea455faed12e2406292c3eff78c35Created 11 years agoUpdated 10 years ago
Descriptionplain2016-05-13 17:54:49
% namespace ensemble create -command foo -subcommands sub -parameters {w {x y} z}
::foo

Three parameters, the 2d with strange name "x y".

% foo
wrong # args: should be "foo w x y z subcommand ?arg ...?"

Error message appears to claim [foo] wants 4 parameters.
Try to follow advice:

% foo a b c d sub
unknown or ambiguous subcommand "d": must be sub

This just looks wrong to me, but it appears to be a wrong
that was deliberately chosen at some effort.  History
education as to why it shouldn't be changed is invited.
Referenced by2
dgpplain2016-07-02 17:22:44
After another look and testing with Itcl and Tk, it
appears this was just a botch.

Fixed for Tcl 8.6.6+.
Log in (anonymous is fine) to add a comment.