On Monday, 13 July 2015 at 09:23:36 UTC, Jonathan M Davis wrote:
On Monday, 13 July 2015 at 06:49:10 UTC, Yuxuan Shui wrote:
[...]
https://issues.dlang.org/show_bug.cgi?id=9769
In theory, the plan is to remove opEquals, opCmp, toString, and
toHash from Object so that they no longer force a particular
set of attributes on everyone. The free function, opEquals
would be templated as part of that (though the opEquals on a
class could not be templated and be a virtual function). Then
folks would define those functions on their derived classes
without whatever attributes they wanted.
[...]
No. I'm not trying to templatizing member function opEquals.
Your post answered my question, thanks. Hope this gets done soon.