<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body>On Sat, 09 Mar 2013 16:28:50 +0100, kenji hara <k.hara.pg@gmail.com> wrote:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr">I don't know why following. Can someone answer?<div><br></div><div>1. Object.opEquals(Object lhs, Object.rhs)</div><div><br></div><div>It seems to me that nobody uses it. Why it exists?</div>
<div><br></div><div>2. object.opEquals(TypeInfo lhs, TypeInfo rhs)</div><div><br></div><div>It might be used to hack for typeid(x) == typeid(y), but I'm not sure.</div><div>That is much ambiguous, and if it's really used, we should move it to static TypeInfo.equals and explicitly use it by the name.</div>
<div><br></div><div>Kenji Hara</div></div>
</blockquote><br>I might be misremembering, but I seem to recall objA == objB is rewritten into Object.opEquals(objA, objB). Object.opEquals(Object lhs, Object rhs) then does the actual two-way comparison of objA.opEquals(objB) && objB.opEquals(objA).<br><br><div id="M2Signature"><div>-- </div><div>Simen</div></div></body></html>