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

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 20 14:18:16 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 nazgul at omega.pl.

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

--- shadow/74953	2005-05-20 14:05:58.000000000 -0400
+++ shadow/74953.tmp.17529	2005-05-20 14:18:16.000000000 -0400
@@ -210,6 +210,17 @@
 Adding the generic interfaces is not enough, of course, since we also
 need the implementation of the methods in the interfaces.
 I'm installing beta2 and checking if Array is really a generic type
 there, or if we can put a generic class between Array and the actual
 array class, otherwise it's going to be a mess, since we'd have to
 generate the generic methods at runtime, too.
+
+------- Additional Comments From nazgul at omega.pl  2005-05-20 14:18 -------
+Lupus: primitive numeric types (like Int32) are implementing
+IComparable<T> so it is possible in both runtime and C# also:
+
+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...


More information about the mono-bugs mailing list