At 01:54 PM 7/3/02 -0600, Thom Boyer wrote:
>I'm personally MUCH more interested in
>Python's generators
><http://www.python.org/peps/pep-0255.html>.
>
>A generator is like an iterator in that it can produce a series of values.
>But unlike
>iterators, when you ask a generator for the next value, it picks up
>execution exactly where
>it left off when it returned the last value -- including all it's stack.

Isn't that a coroutine?  I thought they were already slated for 
P6.  *Rummage*  Yes:

http://www.yetanother.org/damian/diary_April_2001.html
Or if you like:
http://www.yetanother.org/damian/Perl5+i/coroutines.html
--
Peter Scott
Pacific Systems Design Technologies

Reply via email to