On Thursday, 17 September 2015 at 19:32:16 UTC, ddos wrote:
source\app.d(72): Warning: statement is not reachable
What's there? Anything after an endless loop is potentially unreachable and dub treats warnings as errors.
With the for loop, the compiler can't be as sure that it is endless because plain for loops often have their variable changed inside and the compiler just isn't smart enough to actually check for that too.