|
From: Larry S. <la...@wi...> - 2004-03-30 21:04:56
|
> One example is:
>
> upvar 0 x(1) y(1)
>
> which creates a /scalar/ variable named y(1) that is linked to the
> element 1 of the array x. However, there is no way for a tcl script to
> read or write such scalar variables, the parser will interpret that
> name as referring to an element of the array named y.
% global x(1)
% set {x(1)} foo
foo
% puts ${x(1)}
foo
--
.-. .-. .---. .---. .-..-. | Experts in Linux/Unix: www.WildOpenSource.com
| |__ / | \| |-< | |-< > / | "Making the bazaar more commonplace"
`----'`-^-'`-'`-'`-'`-' `-' | Check out my new novel: "Cloud Realm" at:
home: www.smith-house.org | http://www.smith-house.org/books/list.html
|