in reply to Re^2: while ()
in thread while ()
If for is really a while in disguise, maybe they allowed while to have a empty condition to create a simple transformation from for to while.
In other words, if
for (a; b; c) { d }
is translated into
a; while (b) { d } continue { c }
having the while accept an empty condition simplifies the translation.
By the way, C doesn't allow an empty while condition:
a.cpp:5: ANSI C++ forbids an empty condition for `while'
|
|---|