Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-01-09
22:01 • Closed ticket [1558654fff]: "namespace ensemble create foo" should thr... artifact: 92dae3d5e7 user: dkf
2008-03-22
02:12 • Ticket [1558654fff]: 1 change artifact: 0bf46426e3 user: dkf
2006-09-14
21:23 • Ticket [1558654fff]: 1 change artifact: 7ac1781c06 user: msofer
14:18 • New ticket [1558654fff]. artifact: 0163474f88 user: treincke

"namespace ensemble create foo" should throw an error

Closed / Fixed1558654fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 18 years ago
Descriptionplain2006-09-14 14:18:38
The documentation of [namespace ensemble] states that 
the syntax of the "create" subcommand is:

namespace ensemble create ?option value ...?

Given the command [namespcae ensemble create foo] (in 
the :: namespace) should therefore not work because 
"foo" is not a valid option and if it were, the value 
for the option would be missing. Tcl does not raise an 
error here but returns with the string "::".

So either the documentation is wrong or the ensemble 
implementation does not cover this case of calling the 
command.
msofer Ticket [1558654fff]: 1 change [History diff]2006-09-14 21:23:38
dkf Ticket [1558654fff]: 1 change [History diff]2008-03-22 02:12:19
dkfplain2009-01-09 22:01:02
Fixed in HEAD. Can't be bothered to backport as it is Mostly Harmless.
Log in (anonymous is fine) to add a comment.