Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-08-07
06:15 • Closed ticket [3040531fff]: "info procs" in namespace ::tcl::dict resu... artifact: 3c98caec98 user: dkf
2010-08-06
11:34 • New ticket [3040531fff]. artifact: ffd7c4fa83 user: schmitzu

"info procs" in namespace ::tcl::dict results in error

Closed / Invalid3040531fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-08-06 11:34:00
$ tclsh
% namespace eval ::tcl::dict {info procs}

reults in:

missing value to go with key
    while executing
"info procs"
    (in namespace eval "::tcl::dict" script line 1)
    invoked from within
"namespace eval ::tcl::dict {info procs}"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 {namespace eval ::tcl::dict {info procs}}"

It should result in emtpty string if no commands
defined in ::tcl::dict.
dkfplain2010-08-07 06:15:34
allow_comments - 1

There is an 'info' command in the ::tcl::dict namespace (that's the implementation of the [dict info] subcommand) which means that your code is simply not doing what you expect (the error message indicates that 'procs' is not a valid dictionary; this is not surprising). If you use the code below instead, it will do what you want:

    namespace eval ::tcl::dict {::info procs}
Log in (anonymous is fine) to add a comment.