On Mon, 10 Aug 2009 14:01:06 -0700
James Tomaschke <[email protected]> wrote:
> What about,
>
> i = 0;
> do {
> SD = SDList[i++];
> ...
> } while(i<2);
>
I was about to suggest something similar. I'm actually trying to avoid
using for(;;) altogether which may seem odd to some but I just don't like
parsing a for statement, it's rarely clear and usually ugly to my eyes. I
still often forget to increment the counter, but that error produces
a very obvious symptom. When I don't forget I place the increment on a
line by itself, the last of the block, for clarity.
--
Ethan Grammatikidis
Those who are slower at parsing information must
necessarily be faster at problem-solving.