support for yield

Sep 20, 2010 at 8:57 PM

I saw on the main page for this project that the yield keyword is not supported.  Would it not be possible to generate a State Machine, much like the C# compiler does?  If so, would you appreciate any help with implementing it?


Sep 20, 2010 at 10:13 PM

Yes, it's certainly possible.   As you noted, CS2HX would have to generate the state machine, since unfortunately haXe does not have anything like the "yield" feature of C#.   Unfortunately I don't have time to undertake such a project myself, but if you would like to implement it I'd be happy to help out where I can.