From: <no...@so...> - 2001-11-09 21:01:58
|
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. ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2001-11-09 13:01 Message: Logged In: YES user_id=80530 Here's the patch. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=480176&group_id=10894 |