mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 06:54:16 +00:00
Merge pull request #313 from gradha/pr_fixes_rst_format_enumerated_list
Fixes rst format for enumerated list in html output.
This commit is contained in:
@@ -2697,16 +2697,14 @@ In contrast to that, a `closure iterator`:idx: can be passed around:
|
||||
invoke(count0)
|
||||
invoke(count2)
|
||||
|
||||
|
||||
Closure iterators have other restrictions than inline iterators:
|
||||
|
||||
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.
|
||||
3.) ``return`` is allowed in a closure iterator (but rarely useful).
|
||||
4.) Since closure iterators can be used as a collaborative tasking
|
||||
system, ``void`` is a valid return type for them.
|
||||
5.) Both inline and closure iterators cannot be recursive.
|
||||
|
||||
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.
|
||||
3. ``return`` is allowed in a closure iterator (but rarely useful).
|
||||
4. Since closure iterators can be used as a collaborative tasking
|
||||
system, ``void`` is a valid return type for them.
|
||||
5. Both inline and closure iterators cannot be recursive.
|
||||
|
||||
Iterators that are neither marked ``{.closure.}`` nor ``{.inline.}`` explicitly
|
||||
default to being inline, but that this may change in future versions of the
|
||||
|
||||
Reference in New Issue
Block a user