Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Can't execute info command within ::tcl::dict namespace

Closed / Invalid32252cd2857a4c5324f2b1c7e7c79d3e346e0c79Created 13 years agoUpdated 13 years ago
Descriptionplain2014-05-02 06:24:53
The info command seems to have a strange parsing issue when executed within the namespace ::tcl::dict


# works as expected:
$ namespace eval ::tcl::dict {puts hello}
hello

# works as expected:
$ namespace eval ::tcl::clock {info cmdcount}
15533

# produces error:
$ namespace eval ::tcl::dict {info cmdcount}
missing value to go with key
jan.nijtmansplain2014-05-02 06:57:57
I'm sorry, but apparently an internal ::tcl::dict::info commands
exists which takes over here. Try:

% namespace eval ::tcl::dict {::info cmdcount}
538

So, I would say, it works as designed.
Log in (anonymous is fine) to add a comment.