Actually I've looked into patching it the "proper" way, but stopped. There's not enough documentation imho how the AOT generates code and what should've been generated. I'd wish for more commenting about the process in general. I'd love to improve the AOT, but the code is freaking me out. Maybe I'll take some more time to look into the code generator a bit more.
What kind of test are you asking for without foreach? Running a loop using an enumerator? Where should I place it? grover -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Stanislaw Pitucha Gesendet: Sonntag, 16. März 2008 00:54 An: sharpos-developers@lists.sourceforge.net Betreff: Re: [SharpOS Developers] AOT issues with generics? On Sat, Mar 15, 2008 at 1:06 PM, grover <[EMAIL PROTECTED]> wrote: > I'm looking into it. I've created another small patch, which seems to > almost work, except for a problem with the register allocation, which > I can't fix right now. I think it's the wrong place to patch it - just in case you're trying to correct it I'll dump some ideas here: - calling op is "callvirt instance ...", because that's the way it is in corlib - callvirt is may be forced by gmcs from foreach(){} construct, but that's probably irrelevant - in #os List<> is not using any interfaces now, so callvirt looks like a mistake - it would be best to allow List<> to inherit IEnumerable and then think about it or am I wrong? :) Anyone can get a minimal test for this behaviour without foreach? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ SharpOS-Developers mailing list SharpOS-Developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sharpos-developers ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ SharpOS-Developers mailing list SharpOS-Developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sharpos-developers