[Mono-list] array casts in mint
Sam Clegg
sam@superduper.net
Fri, 11 Jul 2003 14:29:48 +0100
--NMuMz9nt05w80d4+
Content-Type: multipart/mixed; boundary="XsQoSWH+UP9D9v3l"
Content-Disposition: inline
--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
The attached code works in mono but fails in mint. Seems that
mint can't cast from Object[] to Array.
Is this a bug? Is there much interest in fixing bugs in the
interpreter now that mini is working?
I am interested in the interpreter because I am working on some
optimisations that are better suited (at the moment anyway) to it.
They involve runtime aggregation of remoting calls. In the end,
what I plan to do is, from with the JIT, select certain methods
and run them through my optimising interpreter. It looks like
switching from JIT to interp at runtime is possible since they=20
share most data structures. Has anyone else tried to do thie
before?
--=20
sam clegg
:: sam@superduper.net :: http://superduper.net/ :: PGP : D91EE369=20
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $
--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cast.cs"
using System;
using System.Collections;
public class CastTest
{
public static int Main (string[] args)
{
object[] my_array = new object[2];
Array array = (Array) my_array.Clone();
Console.WriteLine ("Got Clone");
return 0;
}
}
--XsQoSWH+UP9D9v3l--
--NMuMz9nt05w80d4+
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/DrvMLOvxONke42kRAoAGAKCLbZgelnmpanYLNi1kNsL/T8rF5QCZAejf
5eme3IoazpGIhhp+FrAQmgg=
=EG1H
-----END PGP SIGNATURE-----
--NMuMz9nt05w80d4+--