Re: Phix loop variables and scope
- Posted by _tom (admin) May 25, 2018
- 1082 views
petelomax said...
PS:
namespace mine integer mine:x
I would not expect that to work at all. Namespaces qualify references, not declarations.
I concede it is an odd error message, but there would be little benefit in fixing that.
That explains it. But, looks like this "namespace" idea is incomplete.
petelomax said...
PPS: In phix, pre-declaring the control loop variable makes it persist beyond the end for, in this case with a value of 8.
What do you mean by "pre-declaring" ? (I only understand examples.)
_tom