On Fri, 27 Jul 2012 08:31:36 +0200 Jacob Carlborg <d...@me.com> wrote: > > Note that iterators in .NET and C++ are a bit different. .NET has > language support with the "yield" keyword. >
I wonder how that works under the hood. Like, if it's somewhat similar to opApply. Or maybe more like an Asm-style "messin' with the call stack's return addresses". I would hope it wouldn't involve fiber context switches, unless they're somehow much faster than D fiber context switches (which would seem weird, being in a VM).