Skip to content
Tcl Source Code View Ticket
Login

View Ticket

"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.