[Mono-bugs] [Bug 74809][Maj] Changed - anonymous methods and iterators are not working

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 3 May 2005 12:18:21 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74809

--- shadow/74809	2005-05-03 12:14:37.000000000 -0400
+++ shadow/74809.tmp.31864	2005-05-03 12:18:21.000000000 -0400
@@ -49,6 +49,15 @@
         }
 }
 
 ------- Additional Comments From martin@ximian.com  2005-05-03 12:14 -------
 We are producing some invalid IL if you have an anonymous method
 inside an iterator.
+
+------- Additional Comments From miguel@ximian.com  2005-05-03 12:18 -------
+The problem is that iterators and anonymous methods use two different
+"capturing" mechanisms iterators using an older version of it.
+
+It might be worth reusing the CaptureContext/ScopeInfo framework from
+anonymous methods and rewrite the iterators using that instead of
+having two different codepaths.
+