I have two procs: From MAIN
I call another proc Glob
.
$Allforces
is a list of lists.
proc ::MAIN {} {
# something
::Glob $AllForces
}
proc ::Glob {Input} {
upvar $Input AllForces
# do something
}
I get "No such variable
" as an error for my attemt to upvar
.
So I tried:
upvar $InputMPCForces ::MAIN::AllForces
Then I get: "upvar won't create namespace variable that refers to procedure variable
"
How can I access AllForces
from MAIN
in Glob
by reference?