On Tue, Nov 29, 2011 at 3:53 AM, Christian Walde < walde.christian@googlemail.com> wrote: > On Tue, 29 Nov 2011 09:47:55 +0100, Eric Brine <ikegami@adaelis.com> > wrote: > Why do people always leave out C<< for (EXPR..EXPR) >> when discussing >> > preferences for "for" vs "foreach"? >> > > Because .. does result into an array? Nope, it doesn't into an foreach loop iterating over an array or list*. It results into a counting loop. * -- Except for C<< for (CONST..CONST) >> which expands into an array at compile-time, IIRC - EricThread Previous | Thread Next