So I thought I understood how the TCL upvar command worked, but for some reason I cannot seem to trace why this code generates an error - On runnin ...
So I thought I understood how the TCL upvar command worked, but for some reason I cannot seem to trace why this code generates an error - On runnin ...
The following strained example, in attempt to match my real situation, completes successfully but not the way I'd like it to; nor do I understand why ...
I am trying to execute a tcl script which makes exclusive calls to procs a and b. The two procs are not related to each other. I do not have access ...
The tcl docs provide the following example on how to use the upvar command: Inside this procedure, x acts as a reference to the variable name which ...
Let's say I have a variable which is one level up, which I just want to query its' value. I have two options: uplevel { set var_name } Or: upvar var_n ...
I want to write a function similar to the read built-in, where I pass a variable name as an argument, and the function returns its result into the var ...
I'm getting lost on scoping variables in Tcl. I've got two procs I've written and stored in a file that I want to call in another script I'm writing. ...
Is there an expected, by spec/implementation, difference between accessing namespace variables vs. upvar. I have to use a call-back function. I cannot ...
In the TCL code that I currently work on, the arguments in each procedure is upvar'ed to a local variable so to speak and then used. Something like th ...
This pertains to Tcl 8.5 Say I have a very large dictionary. From performance points of view (memory footprint, etc), assuming that I do not modify th ...
Im trying to modify a variable using upvar (in an upward stack), but the value of the variable is passed to the procedure and not the variable name. ...
Can anyone let me know the difference between upvar 0 and upvar 1 in TCL, how we can use in real time. Kindly, if someone explain with example, it mak ...
Upvar creates a link to a variable in a different stack frame, sometimes called a call stack, or a different scope. Upvar is also used to create an a ...
Consider the following situation: Im trying to figure out how to (a) get a variable from the calling scope (b) have it available in all three procs ...
I need to 'upvar' variables from a source'd file (and I don't know their names) Let's say I have a TCL file containing: Now this: The file t.tc ...
I have a script like this : I would like subProc1 and subProc2 to have variables defined in mainProc. I can pass them as arguments, but it is a lot ...
I'm getting this weird issue. i'm using tcl 8.3 after i define this proc in a tcl shell i keep getting Everytime i hit newline "Enter" after t ...
I have two procs: From MAIN I call another proc Glob. $Allforces is a list of lists. I get "No such variable" as an error for my attemt to upvar. S ...
In the above procedure, 'name' is a parameter which is passed to a procedure named 'rep'. When I run this program I got "error : Can't read "n" : no ...
I have a question about upvar command in TCL. Using upvar command, we have have a reference to a global variable or a local variable in other procedur ...