[Mono-list] Array.cs

Martin Baulig martin@gnome.org
06 Mar 2002 00:20:11 +0100


Paolo Molaro <lupus@ximian.com> writes:

> On 03/05/02 Martin Baulig wrote:
> > Btw. I think I can also commit my Array.cs stuff tonight, it's now
> > almost complete, but I need to drive to the mall before they're
> > closing ...
> 
> Can you post some info about what kind of changes to the array code
> you want to do?

Hi,

well, several things which are now all in CVS:

1.) I rewrote the Array:SetValue interncall to do type conversions for
    all the value types (Boolean, Byte, Char, Double, Int16, Int32,
    Int64, SByte, Single, UInt16, UInt32, UInt64)

    There's also a new testcase in ArrayTest.cs which checks all possible
    combinations between these types (and makes sure they're throwing the
    right exception if the conversion is not allowed).

2.) Rewrote the Array:Copy implementation so that it can now copy multi-
    dimensional arrays.

    I'm also planning to implement this directly in C so that it can use
    memcpy() whenever possible.

3.) Implemented Array:CreateInstance.

4.) Fixed several bugs.

5.) Improved the test suite to use unique labels for all the checks.

and, finally

6.) Made sure that all tests in the test suite pass.

-- 
Martin Baulig
martin@gnome.org