https://issues.dlang.org/show_bug.cgi?id=15793

--- Comment #4 from Jonathan M Davis <[email protected]> ---
At this point, comparing null objects will work just fine, since the free
function opEquals that calls the member function opEquals for classes checks
for null first, but if you use is, you skip the call to opEquals entirely. So,
the error is arguably forcing you to follow best practices, but if the error
weren't there, the code would work just fine. It would just be slightly less
efficient.

--

Reply via email to