I was aware that for and foreach are synonyms, but that the 3-arg from of for behaves differently from the list-form with respect to variable localization is entirely new to me - and again unexpected...
Why would these two forms not use the same logic wrt variable localization ... beyond me...
Oh well, just one more wart I guess...
In reply to Re^4: loop surprise
by morgon
in thread loop surprise
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |