[Mono-list] I think that this is a bug.

Daniel Carrera dcarrera@math.toronto.edu
Tue, 2 Apr 2002 12:42:04 -0500 (EST)


I don't have a Windows computer.   I tried to use my mcs under Linux to
compile the newer one (I dedited all the makefiles).  Apparently that's
not possible yet.

I don't know where the problem is, but mono is the one that gives me the
error:

$ mono ConcatTest.exe

(process:7837): ** WARNING **: unhandled exception
System.OverflowException: "Number overflow"
in System.String:.ctor ()
in System.String:Concat ()
in .TestMoney:Main ()


Once again, my test code is:
class Money {
	private double Amount;
	private string Currency;

	public Money(double amount,string currency) {
		Amount   = amount;
		Currency = currency;
	}
	public string getCurrency() {
		return Currency;
	}
}

class TestMoney {
	public static void Main() {
		Money m = new Money(200,"CAD");
		System.Console.WriteLine("Currency:  " + m.getCurrency());
	}

}


Daniel.


On 2 Apr 2002, Ravi Pratap M wrote:

> Hi Daniel,
>
> On Tue, 2002-04-02 at 09:20, Daniel Carrera wrote:
> > I upgraded mono but the problem persists.  Perhaps the problem is in mcs?
> > I have tried to upgrade mcs but I just can't make it compile.
>
>
> 	Are you telling me that the compiler (mcs/mcs) cannot compile in
> Windows ? I didn't think anybody had broken it but this calls for
> immediate attention.
>
>
> 	Or is it just the class libs (mcs/class) that seem broken in the build
> ?
>
>
> 	Regards,
>
> 		Ravi
>
>
>