upvar

parameter in and out

 

% proc aa { href } { \
upvar $href localhref;
set localhref 1;
\
}
% aa test
1
% puts $test
1

posted @ 2014-10-05 11:24  greencolor  阅读(162)  评论(0编辑  收藏  举报