it creates "var", and sets the element in p1's array
Posted to
tcl
by oldlaptop at Sat Nov 06 17:40:38 GMT 2021
view raw
%
proc
p1 {} {
array
set foo {}; p2; parray foo}
%
proc
p2 {} {
upvar
foo(key) var;
set
var hello;
puts
$var
;
puts
[
array
get foo]}
% p1
hello
foo(key) = hello
%
Recent Posts
tcl by schelte
7 days ago
tcl by emiliano
14 days ago
tcl by fvogel
14 days ago
tcl by emiliano
14 days ago
tcl by rmax
31 days ago
tcl by oldlaptop
31 days ago
tcl by schelte
31 days ago
tcl by Bradipo
44 days ago
tcl by kbk
54 days ago
tcl by oldlaptop
57 days ago
Submit
New paste
Documentation
From Jabber