fixes #277; documentation improvements
This commit is contained in:
parent
e516571b47
commit
3be576222a
5 changed files with 198 additions and 115 deletions
|
|
@ -780,12 +780,15 @@ important differences:
|
|||
* Iterators cannot contain a ``return`` statement and procs cannot contain a
|
||||
``yield`` statement.
|
||||
* Iterators have no implicit ``result`` variable.
|
||||
* Iterators do not support recursion. (This restriction will be gone in a
|
||||
future version of the compiler.)
|
||||
* Iterators do not support recursion.
|
||||
* Iterators cannot be forward declared, because the compiler must be able
|
||||
to inline an iterator. (This restriction will be gone in a
|
||||
future version of the compiler.)
|
||||
|
||||
However, you can also use a ``closure`` iterator to get a different set of
|
||||
restrictions. See `first class iterators <manual.html#first-class-iterators>`_
|
||||
for details.
|
||||
|
||||
|
||||
Basic types
|
||||
===========
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue