[Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

Ben Maurer bmaurer at ximian.com
Fri Jun 10 18:02:06 EDT 2005


On Sat, 2005-06-11 at 00:50 +0300, Ilya Kharmatsky wrote:
> Hi, All!
> 
> Rafael's guess is correct. Since Java doesn't support structs at all -
> we are forced to
> use classes instead of all ValueTypes.  In case of struct array
> initialization - our converter
> (which converts MSIL => Java bytecode) generates "hidden" helper
> functions
> which initialize each element of array before first usage of such
> array.

What if you split up such arrays. IE:

struct X {
   int a; int b; int c;
}

X [] foo;

Turns into:

int foo_A [];
int foo_B [];
int foo_C [];


The optimization of handling structs should take place in the .net ->
java converter, not in our source code.

-- Ben




More information about the Mono-devel-list mailing list