зеркало из https://github.com/mono/mail-archives.git
82 строки
3.1 KiB
HTML
82 строки
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:rodolfocampero%40hotmail.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="016495.html">
|
|
<LINK REL="Next" HREF="016501.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</H1>
|
|
<B>Rodolfo Campero
|
|
</B>
|
|
<A HREF="mailto:rodolfocampero%40hotmail.com"
|
|
TITLE="[Mono-list] Possible mcs bug: CS0019 detected for comparable instances">rodolfocampero@hotmail.com
|
|
</A><BR>
|
|
<I>Sat, 18 Oct 2003 17:57:13 +0000</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="016495.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016501.html">[Mono-list] The Exceptions and the protection Levels...
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16500">[ date ]</a>
|
|
<a href="thread.html#16500">[ thread ]</a>
|
|
<a href="subject.html#16500">[ subject ]</a>
|
|
<a href="author.html#16500">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Hello,
|
|
Thanks Dave and Rahul for validate this problem.
|
|
I already filed a bug report.
|
|
I think the problem may be related to this snippet taken from ECMA-334,
|
|
section 14.9.6:
|
|
|
|
"It is a compile-time error to use the predefined reference type equality
|
|
"operators to compare two references that are known to be different at
|
|
"compile-time. For example, if the compile-time types of the operands
|
|
"are two class types A and B, and if neither A nor B derives from the
|
|
"other, then it would be impossible for the two operands to reference
|
|
"the same object. Thus, the operation is considered a compile-time error.
|
|
|
|
Maybe the implementation considers an interface as a regular class,
|
|
and given the fact that the base class doesn't implement it, mcs complains
|
|
with CS0019; but in fact nothing can be said about an instance referenced
|
|
through an interface.
|
|
|
|
Just my 2 cents in my lurker opinion, I didn't even looked at the code...
|
|
|
|
Greetings and thanks again,
|
|
|
|
Rodolfo
|
|
|
|
_________________________________________________________________
|
|
Send instant messages to anyone on your contact list with MSN Messenger
|
|
6.0. Try it now FREE! <A HREF="http://msnmessenger-download.com">http://msnmessenger-download.com</A>
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="016495.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016501.html">[Mono-list] The Exceptions and the protection Levels...
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16500">[ date ]</a>
|
|
<a href="thread.html#16500">[ thread ]</a>
|
|
<a href="subject.html#16500">[ subject ]</a>
|
|
<a href="author.html#16500">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|