On 4/9/12 9:35 PM, Kevin Cox wrote:

On Apr 9, 2012 9:19 AM, "Manu" <[email protected]
<mailto:[email protected]>> wrote:
 >
 > OMG, DO WANT! :P
 > Who wrote this? I wonder if they'd be interested in adapting it to
VisualD + MonoDevelop?
 >
 >
 > On 9 April 2012 12:56, Ary Manzana <[email protected]
<mailto:[email protected]>> wrote:
 >>
 >> On 4/9/12 7:26 AM, Kevin Cox wrote:
 >>>
 >>> I was wondering about the foreach statement and when you implement
 >>> opApply() for a class it is implemented using closures.  I was
wondering
 >>> if this is just how it is expressed or if it is actually syntatic
 >>> sugar.  The reason I aski is because if you have a return statement
 >>> inside a foreach it returns from the outside function not the
"closure".
 >>>
 >>> I was just wondering if anyone could spill the implementation details.
 >>>
 >>> Thanks,
 >>> Kevin
 >>
 >>
 >> In this video you can see what foreach with opApply gets translated
to (at about minute 1):
 >>
 >> http://www.youtube.com/watch?v=oAhrFQVnsrY
 >

Unfortunately I can't get it working.  Ill have to keep fiddling.


Note that, as many already said, it hasn't been updated for a long time now, and things won't change. So only use it if coding for a reaaaally old D version.

Reply via email to