
10 May
2005
10 May
'05
8:14 p.m.
"Eric Niebler" <eric@boost-consulting.com> wrote in message news:428102C3.8060502@boost-consulting.com... | But users might reasonably expect this: | | int i = 0; | for( i : vect ) | { | } | // maybe use i here | | to use the pre-declared i as a loop variable instead of introducing a | new variable. That's an important use case, and some allowance should be | made for it in the chosen syntax. can you show some important examples? often, making something "good" at two things makes it bad at both. The new for-loop is supposed to do one thing really well. -Thorsten