Re: Phix loop variables and scope

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu