Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-07-02
17:57
[f961d7d1dd] Repair usage message for ensemble parameters with spaces. check-in: ef9ee5ea93 user: dgp tags: trunk
17:22 • Closed ticket [f961d7d1dd]: ensemble parameters in error msg - unclear quoting</... artifact: 923ade40e8 user: dgp
17:21
[f961d7d1dd] Repair usage message for ensemble parameters with spaces. check-in: c5ab34c434 user: dgp tags: core-8-6-branch
2016-05-13
17:54 • New ticket [f961d7d1dd] ensemble parameters in error msg - unclear quoting. artifact: c6c63c10f0 user: dgp

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.