OMG, DO WANT! :P<div>Who wrote this? I wonder if they'd be interested in adapting it to VisualD + MonoDevelop?<br><div><br><div class="gmail_quote">On 9 April 2012 12:56, Ary Manzana <span dir="ltr"><<a href="mailto:ary@esperanto.org.ar">ary@esperanto.org.ar</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 4/9/12 7:26 AM, Kevin Cox wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was wondering about the foreach statement and when you implement<br>
opApply() for a class it is implemented using closures.  I was wondering<br>
if this is just how it is expressed or if it is actually syntatic<br>
sugar.  The reason I aski is because if you have a return statement<br>
inside a foreach it returns from the outside function not the "closure".<br>
<br>
I was just wondering if anyone could spill the implementation details.<br>
<br>
Thanks,<br>
Kevin<br>
</blockquote>
<br></div>
In this video you can see what foreach with opApply gets translated to (at about minute 1):<br>
<br>
<a href="http://www.youtube.com/watch?v=oAhrFQVnsrY" target="_blank">http://www.youtube.com/watch?<u></u>v=oAhrFQVnsrY</a><br>
</blockquote></div><br></div></div>