1. Re: C-for-loops using while ?

>>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

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu