in reply to Re^2: which loop is better
in thread which loop is better

Err, I don't think what you say is very clear. For and foreach are synonyms, but either of them can be used to delcare two completely different loop contructs, ie the following two lines are identical to each other
for (expr; expr; expr) block foreach (expr; expr; expr) block
while the following two are identical to each other, but not to the first two lines above
for (list) block foreach (list) block

Dave.

Replies are listed 'Best First'.
Re^4: which loop is better
by Joost (Canon) on Oct 04, 2004 at 11:15 UTC