"destruk" wrote:
This works fine --
nums = [1,2,3,4,5,6,7,8,9]
nums2 = [1,2,3,4,5,6,7,8,9]
for each i in nums:for each j in nums2:? i " x" j " =" i*j:end for:end for
DUH: It will also work fine if (a) i use "regular" for loop or (b) don't use loop at all but hard-code the table or (c) start growing water lilies instead of trying to code in B/S.
But this is not the point!!
It was just an ILLUSTRATION of something that works in any sane language with "for each" loop that i can think of (and i dare you to find example to the contrary).
When program gets complicated enough, there is no way to predict who will enumerate when and therefore behavior gets unpredictable.