[Mono-list] Using Mono

Paolo Molaro lupus@ximian.com
Mon, 1 Apr 2002 21:10:44 +0200


On 03/30/02 Ravi Pratap wrote:
> > If you replace the 2nd and 3rd statement by:
> > 
> > private double Real;
> > private double Imaginary;  // Notice I dropped "=0"
> > 
> > The program compiles perfectly.
> 
> 	This is really strange - are you talking about the compiling bit or the
> bit where you try to run it using Mono ? I would be severely shocked to
> discover that the compiler doesn't support initialization of double
> fields so I have to fix that right away if it really is true :-)
> 
> 
> 	If this fixes the tree match error, well Lupus/Dietmar will take care
> of it ;-)

It's an mcs bug: it produces invalid IL code:

	ldc.i4.0
	stfld float64 ....

while it should have been:

	ldc.i4.0
	conv.r8
	stfld float64 ....

Or some other correct variant.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better