I tried something like:
Code: Select all
namespace eval blah {
set foo 1
proc moo {x} {
upvar #0 $x var
puts $var
}
}
If I take the code outside the namespace then it's working as expected. What am I doing wrong?
Code: Select all
namespace eval blah {
set foo 1
proc moo {x} {
upvar #0 $x var
puts $var
}
}