Wow! Learn something new every day. I'm glad I've never run into this. It would have driven me nuts.
So with that being said, do you have any idea why this is implemented in such a way? Why does it become "implicitly local to the loop", hiding the global var's value? This is completely unexpected (at least to me), and doesn't really seem like the logical thing.
In reply to Re^2: Tricky scope problem
by lostjimmy
in thread Tricky scope problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |