note on break and continue
This commit is contained in:
1 parent
3adc628e8f
commit
d8abd3ac4c
2 files changed
+2
No files matched your search
@@ -990,6 +990,7 @@ iteration expression.
|
||||
`c_for` Mimics c-style tri-arg (plus body) for loops. Return value of `c_for` is number of iterations performed in the
|
||||
loop. Unlike other loops, the `body` is not provided with pre-initialized `_` style variables - all initialization
|
||||
and increments has to be handled by the programmers themselves.
|
||||
`break` and `continue` statements are handled within `body` expression only, and not in `condition` or `increment`.
|
||||
|
||||
<pre>
|
||||
c_for(x=0, x<10, x+=1,
|
||||
|
||||
Reference in new issue
Block a user