yield, C# etc

davidl davidl at 126.com
Tue Aug 12 19:02:13 PDT 2008


在 Wed, 13 Aug 2008 08:21:29 +0800,bearophile <bearophileHUGS at lycos.com>  
写道:

> This explains how C# implements a handy yield not far from the Python  
> one (Python one allows to create coroutines too):
>
> http://blogs.msdn.com/oldnewthing/archive/2008/08/12/8849519.aspx
>
> The syntax of yield is quite cleaner than the opApply (but maybe that C#  
> implementation is less efficient).
>
> Bye,
> bearophile

iirc, C#'s yield also allows to create coroutine.

-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/



More information about the Digitalmars-d mailing list