|
|
|
|
|
by luckydude
1946 days ago
|
|
http://www.tcl.tk/man/tcl8.5/TclCmd/upvar.htm That man page isn't the most clear. upvar gives you a way to modify a variable in the calling context (and I think it can go up more than one stack frame). It's a way to pass by reference rather than the default pass by value (how tcl passes is more complicated than that for performance but the default semantics are pass by value). |
|