[Mono-bugs] [Bug 80581][Cos] Changed - [GMCS] Unable to compare a struct to null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 29 05:13:35 EST 2007

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 pawel.sakowski at mindbreeze.com.


--- shadow/80581	2007-01-28 13:33:50.000000000 -0500
+++ shadow/80581.tmp.29754	2007-01-29 05:13:35.000000000 -0500
@@ -54,6 +54,16 @@
 I do not want to support this without a good reason, because the code
 above is masking a real problem: that comparing "Now" to null is
 always going to be false (always, not sometimes, but always).
+------- Additional Comments From pawel.sakowski at mindbreeze.com  2007-01-29 05:13 -------
+Yes, looks like the spec is pretty silent about this. It seems that
+neither the results of such a comparison are specified, nor is it
+explicitly forbidden.
+Regarding "always going to be false": yes, that's exactly what I meant
+with "pointless". The pre-existing code I've met that triggered this
+issue used a comparison of a struct to null as an over-eager check for

More information about the mono-bugs mailing list