fixes #277; documentation improvements

This commit is contained in:
Araq 2012-12-17 19:30:43 +01:00
commit 3be576222a
5 changed files with 198 additions and 115 deletions

View file

@ -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
===========