mail-archives/mono-bugs/2009-February/086517.html

105 строки
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20475354%5D%20Null%20values%20for%20nullable%20structs%20are%0A%20reported%20as%20not%20equal%20to%20each%20other&In-Reply-To=bug-475354-28286%40https.bugzilla.novell.com/">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="086018.html">
<LINK REL="Next" HREF="086550.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20475354%5D%20Null%20values%20for%20nullable%20structs%20are%0A%20reported%20as%20not%20equal%20to%20each%20other&In-Reply-To=bug-475354-28286%40https.bugzilla.novell.com/"
TITLE="[Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other">bugzilla_noreply at novell.com
</A><BR>
<I>Wed Feb 25 12:50:28 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="086018.html">[Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other
</A></li>
<LI>Next message: <A HREF="086550.html">[Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86517">[ date ]</a>
<a href="thread.html#86517">[ thread ]</a>
<a href="subject.html#86517">[ subject ]</a>
<a href="author.html#86517">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=475354">https://bugzilla.novell.com/show_bug.cgi?id=475354</A>
User <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">dmitchell at logos.com</A> added comment
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=475354#c2">https://bugzilla.novell.com/show_bug.cgi?id=475354#c2</A>
David Mitchell &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">dmitchell at logos.com</A>&gt; changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #2 from David Mitchell &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">dmitchell at logos.com</A>&gt; 2009-02-25 10:50:27 MST ---
It seems that this hasn't been completely fixed, as evidenced by this log from
the C# shell:
---
Mono C# Shell, type &quot;help;&quot; for help
Enter statements below.
csharp&gt; DateTime? a = default(DateTime?);
csharp&gt; DateTime? b = default(DateTime?);
csharp&gt; a == b;
false
csharp&gt; default(DateTime?) == default(DateTime?);
true
csharp&gt; a == default(DateTime?);
true
csharp&gt; default(DateTime?) == b;
true
---
Here we see that comparing default(DateTime?) to itself or to an object that
has been set to default(DateTime?) yields the expected value, but if we assign
two DateTime? objects to default(DateTime?) and compare them to each other, we
get an incorrect result.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="086018.html">[Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other
</A></li>
<LI>Next message: <A HREF="086550.html">[Mono-bugs] [Bug 475354] Null values for nullable structs are reported as not equal to each other
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86517">[ date ]</a>
<a href="thread.html#86517">[ thread ]</a>
<a href="subject.html#86517">[ subject ]</a>
<a href="author.html#86517">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>