Fixes rst format for enumerated list in html output.
This commit is contained in:
parent
d0bd5d5cc3
commit
7d256d011e
1 changed files with 6 additions and 8 deletions
|
|
@ -2682,16 +2682,14 @@ In contrast to that, a `closure iterator`:idx: can be passed around:
|
||||||
invoke(count0)
|
invoke(count0)
|
||||||
invoke(count2)
|
invoke(count2)
|
||||||
|
|
||||||
|
|
||||||
Closure iterators have other restrictions than inline iterators:
|
Closure iterators have other restrictions than inline iterators:
|
||||||
|
|
||||||
1.) ``yield`` in a closure iterator can not occur in a ``try`` statement.
|
1. ``yield`` in a closure iterator can not occur in a ``try`` statement.
|
||||||
2.) For now, a closure iterator cannot be evaluated at compile time.
|
2. For now, a closure iterator cannot be evaluated at compile time.
|
||||||
3.) ``return`` is allowed in a closure iterator (but rarely useful).
|
3. ``return`` is allowed in a closure iterator (but rarely useful).
|
||||||
4.) Since closure iterators can be used as a collaborative tasking
|
4. Since closure iterators can be used as a collaborative tasking
|
||||||
system, ``void`` is a valid return type for them.
|
system, ``void`` is a valid return type for them.
|
||||||
5.) Both inline and closure iterators cannot be recursive.
|
5. Both inline and closure iterators cannot be recursive.
|
||||||
|
|
||||||
|
|
||||||
Iterators that are neither marked ``{.closure.}`` nor ``{.inline.}`` explicitly
|
Iterators that are neither marked ``{.closure.}`` nor ``{.inline.}`` explicitly
|
||||||
default to being inline, but that this may change in future versions of the
|
default to being inline, but that this may change in future versions of the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue