Re: Another try, do_request and globals issues
Tilmann Singer <[email protected]> Fri, 22 Aug 2003 14:29:00 +0000
| Newsgroups | gmane.comp.web.tclwebtest |
|---|---|
| Message-ID | <[email protected]> |
* Grzegorz Adam Hankiewicz <[email protected]> [20030818 11:54]: > Maybe tclwebtest could be modified to run inside a custom namespace > and then run the script with an `upvar' instead. Til, what do > you think? > > Anyway, the solution to your problem is easy, before `set myglobalvar > 79' put another `global myglobalvar' and it will work as expected: I'm not sure if tclwebtest should be changed to run tests in another level - I can't remember what the rationale behind the current design was (if there was any at all), but I'm afraid that a change would subtly change behaviour in other places, and if the only problem currently can be solved by calling 'global' inside the test again then it should be ok I guess. I'll try to add that to the docs. cheers, til -- http://tsinger.com ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0