########################################################
# It may be error in "namespace eval".
# Why such output??????????????
########################################################
if { [info exists ::tk_version] } { console show; console eval { font configure TkConsoleFont -size 20 } }
set tli {::auto_mkindex_parser ::mk ::oo::InfoObject ::oo::Obj1
::pkg ::tcl ::tcl::Pkg ::tcl::array ::tcl::dict ::tcl::file
::ttk::treeview ::vfs ::vfs::mk4 ::zlib }
foreach ns $tli {
set str { set tli [info vars]; set tli [lmap x $tli { namespace which -variable $x }] }
if { [catch { namespace eval $ns $str} res] } {
puts "=== error in $ns, $res"
}
}
########################################################
# Output:
#=== error in ::mk, view index is out of range
#=== error in ::oo::InfoObject, wrong # args: should be "namespace objName"
#=== error in ::tcl::array, can't set "tli(tcl_rcFileName)": variable isn't array
#=== error in ::tcl::dict, missing value to go with key
########################################################
|