[Mono-list] bug found! :-)

Gaurav Vaish gvaish@adobe.com
Tue, 26 Aug 2003 14:13:32 +0530


    Because the operator '/' has been overloaded in such a way.

    Both int and uint are 'promoted' to 'long' to allow '/'. Incase of both
int, there's no need for promotion.


Cheers,
Gaurav
http://gvaish.virtualave.net
--------------------------------


----- Original Message ----- 
From: "Maurizio Colucci" <seguso.forever@tin.it>
To: <mono-list@lists.ximian.com>
Sent: Tuesday, August 26, 2003 14:00
Subject: Re: [Mono-list] bug found! :-)


> On Tuesday 26 August 2003 05:36, Rohit wrote:
> > thats not a bug!
> > cause
> >
> > 4/3 = 1.3333333333333333333333333333333 != integer.
>
> Then why does this remove the error?
>
> int o = i/(int)u
>
> ?
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>