Posted to tcl by de at Sat Apr 07 00:08:56 GMT 2018view pretty

proc mycmd {args} {
    puts "mycmd: $args"
}

set cmd mycmd

namespace eval foo {
    $cmd bar bar
}

# With 8.6.8:
# mycmd: bar bar
#
# With 9.0 (error):
# can't read "cmd": no such variable