[Mono-bugs] [Bug 74953][Maj] Changed - [GMCS] Converting array to IEnumerable<T>

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 27 03:19:28 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martin at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74953

--- shadow/74953	2005-06-27 03:17:20.000000000 -0400
+++ shadow/74953.tmp.14294	2005-06-27 03:19:28.000000000 -0400
@@ -262,6 +262,15 @@
 that the types are incompatible (because it doesn't know yet that
 that's allowed) and reject this as invalid IL - ie. in the same way as
 if you'd try to pass an array to a function taking a string ?
 
 My first idea of fixing this was having the verifier somehow change
 the type of the array.
+
+------- Additional Comments From martin at ximian.com  2005-06-27 03:19 -------
+Paolo, what do you think about doing this in NEWARR ?
+
+Everytime you create an array where all elements have the same type T,
+create an instance of some special generic class
+System.InternalArray<T> instead of just System.Array.
+
+This shouldn't require too many changes in the JIT, just in NEWARR.


More information about the mono-bugs mailing list