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
|
`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
|
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.
|
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>
|
<pre>
|
||||||
c_for(x=0, x<10, x+=1,
|
c_for(x=0, x<10, x+=1,
|
||||||
|
|||||||
@@ -24,6 +24,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
|
`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
|
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.
|
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>
|
<pre>
|
||||||
c_for(x=0, x<10, x+=1,
|
c_for(x=0, x<10, x+=1,
|
||||||
|
|||||||
Reference in new issue
Block a user