[Mono-list] Iterator hello world.
Miguel de Icaza
miguel@ximian.com
07 May 2003 10:38:47 -0400
--=-Lip2CmbWg/xmaVX+QRMH
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Forgot to attach patch.
--=-Lip2CmbWg/xmaVX+QRMH
Content-Disposition: attachment; filename=x
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=x; charset=ISO-8859-1
? .x.swo
? .x.swp
? 2.cs
? X
? a.cs
? b.cs
? f.cs
? ff.cs
? fo.cs
? g.cs
? h.cs
? h.dll
? hh.cs
? i.cs
? i3.cs
? ij.cs
? j.cs
? ji.cs
? jj.cs
? k.cs
? n.cs
? r.cs
? s.cs
? t.cs
? ti.cs
? tr.cs
? ts.cs
? tt.cs
? u.cs
? v.cs
? v.dll
? x
? x.cs
Index: iterators.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/public/mcs/mcs/iterators.cs,v
retrieving revision 1.4
diff -u -r1.4 iterators.cs
--- iterators.cs 5 May 2003 04:18:44 -0000 1.4
+++ iterators.cs 7 May 2003 14:45:09 -0000
@@ -179,10 +179,10 @@
Location loc;
int modifiers;
=20
- static int count;
+ static int proxy_count;
string MakeProxyName ()
{
- return String.Format ("<Proxy_{0}>", count++);
+ return String.Format ("<Proxy_{0}>", proxy_count++);
}
=20
public void EmitYieldBreak (ILGenerator ig, bool add_return)
@@ -342,7 +342,7 @@
=20
void LoadArgs (ILGenerator ig)
{
- count =3D parameters.Count;
+ int count =3D parameters.Count;
if ((modifiers & Modifiers.STATIC) =3D=3D 0)
count++;
=20
--=-Lip2CmbWg/xmaVX+QRMH--