Why use while if only iterating once ?

lithium iodate whatdoiknow at doesntexist.net
Sat Nov 3 21:16:01 UTC 2018


On Saturday, 3 November 2018 at 21:03:16 UTC, Venkat wrote:
> The last break statement prevents the loop from returned for a 
> second iteration. Then why use a while ?

The continue statement may abort the current iteration and start 
the next, causing the final break to not necessarily be executed 
every iteration.


More information about the Digitalmars-d-learn mailing list