uplevel
uplevel ?level? command ?arg ...?
Runs a script in the scope of a caller: 1 (the default) is the caller, and #0 is the top level. Code that makes control commands uses it.
Examples
A click on an example runs it in the shell of the page.
proc setInCaller {} {uplevel 1 {set made yes}}; setInCaller; set made:yes
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.