[Mono-list] Mono bug with 'count++'

Adam Treat manyoso@yahoo.com
Fri, 12 Apr 2002 18:57:17 -0700


it looks like the bug is with mcs/mint.  the code should not compile.  I 
initialized count and now mono runs it just fine.  it seems mcs is teaching 
me bad habits ;-)

sorry if this has already been reported.

Cheers,

Adam

> On Friday 12 April 2002 06:43 pm, you wrote:
> > using System;
> >
> > public class CountTest {
> >
> >         public static void Main(string[] args)
> >         {
> >                 int count;
> >                 while (count != 10)
> >                         Console.WriteLine(count++);
> >         }
> > }