|
2022-10-16
| ||
| 20:25 | • New ticket [c1c4daae0e] may be error in "namespace eval". artifact: 4a69baf98a user: anonymous | |
may be error in "namespace eval"
Openc1c4daae0e9821d75597754c1887f435db6b9152Created 4 years agoUpdated 4 years ago
Descriptionplain2022-10-16 20:25:17
########################################################
# 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
########################################################
Log in (anonymous is fine) to add a comment.