[Mono-list] A serious bug in C#=?koi8-r?Q?=3F=3F=3F?=

Erik Bågfors erik@bagfors.nu
25 Apr 2003 17:43:32 +0200


On Fri, 2003-04-25 at 16:10, Nikolai Smirnov wrote:
> Dear colleagues!
> 
> I'll try this code:
> 
> class My
> {
>     public static void Main()
>     {
>          int i = 0;
>          System.Console.WriteLine(i++ + i++ + i++);
>                                   // 0 + 1 + 2
>     }
> }
> 
> mcs My.cs
> momo My.exe
> 
> and I recieved "4" instead of "3" in C# for M$.NET or Java.
> 

Most interesting,


: [bagfors@detrius]$ ; mono My.exe 
4

: [bagfors@detrius]$ ; mint My.exe 
3

mint has a different view on life :)


/Erik

-- 
erik@bagfors.nu
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32