On Friday, 17 March 2017 at 13:53:58 UTC, Hussien wrote:
Yes, but you have a nested foreach loop. One runtime and one compile time. The break goes with the runtime loop... but NORMAL programming logic tells us that the break goes with the loop that it exists in.
It did. It broke the loop counting the numbers, but continued the loop of strings normally.
People have requested a `static foreach` before, but that request has not yet been granted.
They are going to expect them to continue or break out of the inner most loop that they are called from.
That is exactly what they do, and exactly what happened in all the examples posted.