From: <no...@so...> - 2001-11-09 20:43:07
|
Bugs item #480176, was opened at 2001-11-09 12:43 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=480176&group_id=10894 Category: 07. Variables Group: 8.4a4 Status: Open Resolution: None Priority: 5 Submitted By: Don Porter (dgp) Assigned to: miguel sofer (msofer) Summary: [global :v] makes wrong link Initial Comment: % proc test {} { global :v set v 1 set :v 2 } % test 2 % set :v 1 [global] is linking global variable :v to local variable v, rather than the correct local variable :v. Workaround: [global $varName] should be equivalent to [upvar #0 $varName [namespace tail $varName]] so one could just define it so. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=480176&group_id=10894 |