[Mono-bugs] [Bug 74953][Maj] Changed - [GMCS] Converting array to
IEnumerable<T>
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jun 19 03:56:29 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 mass at akuma.org.
http://bugzilla.ximian.com/show_bug.cgi?id=74953
--- shadow/74953 2005-05-25 13:37:14.000000000 -0400
+++ shadow/74953.tmp.584 2005-06-19 03:56:28.000000000 -0400
@@ -221,6 +221,21 @@
class A : IComparable <A> {
int Compare (A) {... }
}
If I am missing something or I'm simply wrong, then ignore me - I just
saw this strange statement of yours...
+
+------- Additional Comments From mass at akuma.org 2005-06-19 03:56 -------
+I'll toss my two cents in here as well, since I hit this bug writing tests for the generics code
+(and may need it fixed for the future)
+
+ Array in 2005b2 does not implement any generic interfaces, this makes sense - to
+support varying generic interfaces, it would need to be changed into a generic type.
+
+I imagine arrays are special-cased in their runtime so that the types remains the same
+(child types of Array, inheriting array implementations of interfaces), but also have their
+interface tables stuffed with an implementation of IList<T>, which includes
+ICollection<T> and IEnumerable<T>.
+
+I could certainly author a quick C# ArrayList<T> if it helps resolve this bug, but cannot
+imagine this could be used without some runtime changes.
More information about the mono-bugs
mailing list