From: oleg@... (oleg@...) Date: 2002-02-06T10:21:08+09:00 Subject: Re: Call/CC and Ruby iterators. olczyk@interaccess.com (Thaddeus L Olczyk) wrote in message news:<3c621958.43511656@nntp.interaccess.com>... > Reading about call/cc in Scheme I get the impression that it is very > like Ruby's iterators. call/cc is a _very_ general and powerful construction (some people argue that perhaps it's too powerful). call/cc indeed can be used to implement generators such as those present in Icon and recently introduced into Python. The following thread discusses such an implementation: http://groups.google.com/groups?hl=en&threadm=7eb8ac3e.0110021938.b7d04ca%40posting.google.com Perhaps this discussion is relevant to Ruby as well.