[D-runtime] Two questions about object opEquals

kenji hara k.hara.pg at gmail.com
Sat Mar 9 07:28:50 PST 2013


I don't know why following. Can someone answer?

1. Object.opEquals(Object lhs, Object.rhs)

It seems to me that nobody uses it. Why it exists?

2. object.opEquals(TypeInfo lhs, TypeInfo rhs)

It might be used to hack for typeid(x) == typeid(y), but I'm not sure.
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.

Kenji Hara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d-runtime/attachments/20130310/4afcf8b7/attachment.html>


More information about the D-runtime mailing list