A problem with generators
Adam D. Ruppe
destructionator at gmail.com
Wed Mar 17 14:41:57 PDT 2010
On Wed, Mar 17, 2010 at 05:26:14PM -0400, bearophile wrote:
> It's really easy to use and remember, not bug prone. This possible syntax is about 75 times better than the current opApply:
>
> yield(int) foo() {
> yield 5;
> }
That's a *really* subjective statement. I understand pretty close to
instantly what opApply does - sends your data to the function inside
the loop.
Even with your explanation, I still don't really get what yield does.
--
Adam D. Ruppe
http://arsdnet.net
More information about the Digitalmars-d
mailing list