<-- back

Range for

The general declaration of a for loop in C like for (init; condition; step) will be removed. Instead, for loops shall only (ONLY!) be used for range based loops only:

NAL: for (i in myArray) {...} for (i in [5 .. n]) {...} C: for (size_t i = 0; i < _nalArraySize(myArray); ++i) {...} for (size_t i = 5; i < n; ++i) {...}

Discussion