Re: [tclwebtest] Another try, do_request and globals issues
Status: Abandoned
Brought to you by:
tils
From: Tilmann S. <ti...@ti...> - 2003-08-22 23:57:55
|
* Grzegorz Adam Hankiewicz <gr...@ef...> [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 |