1. Re: C-for-loops using while ?
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL>
Jun 28, 1998
-
Last edited Jun 29, 1998
>>A "for (a, b, c) d " translates in:
>>{ a & b & c & d & continue } as I recall (maybe the order is a bit
>
> Actually:
>
> a;
> while (b) {
> d;
> c;
> }
While is a macro also.
while (a) b
translates into:
"if (a) exit;" & b & continue
Continue is not for loops, it means go back the where the '{' started, as I
recall.
You should be able to use continue & exit in any block. It doesn't have to
be a loop, although you could say using continue or exit makes it a loop.
Ralf Nieuwenhuijsen
nieuwen at xs4all.nl