R
Roopesh
It's actually pretty close to Fortran:
do
...
enddo
James Tursa
I think that both are same, either you go with for(; or while(1).
But i guess, on the internal workings, while(1) is far better than for
(; [ even though, for(; is cleaner to read ]. The reason being,
while implementing the for(;, the code has to maintain an internal
variable, for incrementing it and checking for infinity [ Correct me
if am wrong ], whereas in the case of while(1), its just a flag check
and nothing more.
So, i would prefer to use while(1) than for(;, at the cost of the
readability.
Roopesh.