[mono-vb] Multi-dim arrays of structures
Rolf Bjarne Kvinge
rolflists at ya.com
Fri Apr 9 12:24:21 EDT 2010
Hi,
A slightly different version of the patch has been applied.
Thanks a lot!
Rolf
> -----Mensaje original-----
> De: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-
> bounces at lists.ximian.com] En nombre de John Lenz
> Enviado el: jueves, 08 de abril de 2010 20:02
> Para: mono-vb at lists.ximian.com
> Asunto: [mono-vb] Multi-dim arrays of structures
>
> Hi,
>
> The following code was giving me a 9997 error.
>
> Public Class Main
>
> Public Structure Foo
> Public T As Integer
> End Structure
>
> Public Shared Sub Main()
> Dim b(,) As Boolean = { {True,False}, {False,False}}
> System.Console.Out.WriteLine(b(0,1).ToString())
>
> Dim f(2, 2) As Foo
> f(1,2).T = 5
>
> System.Console.WriteLine(f(1,2).T.ToString())
> End Sub
>
> End Class
>
> I looked at the IL produced by gmcs for equivalent C# code and found
> gmcs was using a virtual call to the Address method. The attached
> patch fixes the problem for me.
>
> Thanks,
> John
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.801 / Virus Database: 271.1.1/2796 - Release Date:
> 04/07/10 20:32:00
More information about the Mono-vb
mailing list