in reply to Re^3: loop surprise
in thread loop surprise
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: loop surprise
by Your Mother (Archbishop) on Apr 03, 2018 at 18:21 UTC | |
by morgon (Priest) on Apr 03, 2018 at 20:50 UTC | |
by Your Mother (Archbishop) on Apr 04, 2018 at 00:38 UTC | |
by Skeeve (Parson) on Apr 04, 2018 at 10:02 UTC | |
by Marshall (Canon) on Apr 04, 2018 at 17:59 UTC | |
by BillKSmith (Monsignor) on Apr 04, 2018 at 04:18 UTC |