[Mono-bugs] [Bug 45761][Nor] Changed - foreach fails in iterators.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 7 Jul 2003 02:34:33 -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=45761
--- shadow/45761 Sun Jul 6 12:39:42 2003
+++ shadow/45761.tmp.12916 Mon Jul 7 02:34:32 2003
@@ -37,6 +37,20 @@
Console.WriteLine ("-> " + a);
}
}
}
Instead of crashing, it should print 1, 2, 3
+
+------- Additional Comments From miguel@ximian.com 2003-07-07 02:34 -------
+Martin,are you sure you want this bug? There are plenty of other
+more complex ones and I know what needs to be done here.
+
+Anyways, for the record (as I wont be online for the next two days too
+much): Basically we need to invoke a method on the EmitContext to
+create local variables. The EmitContext will decide whether the local
+variable is really a local variable, or whether it should be proxied
+into the proxy class that holds the local variables for the enumerable
+method.
+
+We already "proxy" explicit variables, but these "internal" variables
+were not proxied, and that is the bug