variable
variable ?name value ...? name ?value?
In a namespace, makes namespace variables and gives them values. In a proc, links each name to the variable of the namespace of the proc.
Examples
A click on an example runs it in the shell of the page.
namespace eval cfg {variable size 10}; set cfg::size:10
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.