[Issue 956] Testing Class Object for null reference causes Access Violation Error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 13 06:20:13 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=956
------- Comment #1 from ddparnell at bigpond.com 2007-02-13 08:20 -------
Not a bug.
The form "object == null" gets transformed as object.opEquals(null), and so if
the object is actually null already, the invocation of it's opEquals member
fails.
The documented method of testing for null objects is
if (object is null) ...
--
More information about the Digitalmars-d-bugs
mailing list