Re: problems with the scoping in eu4
- Posted by jaygade Jan 08, 2011
- 1765 views
bill said...
No: my point was that the for loop variable pollutes the outer namespace.
for i ... end for
for i ... end for <= is a re-declaration error
Masking is a somewhat separate issue as it is about being able to declare variables in nested scope
The for loop variable should not be accessible outside of the scope of the for. That should mean that separate non-nested fors should be able to use the same index name
Bill
Then you are incorrect. This works without error, and has at least back to the 1.4 version days.