WAT: opCmp and opEquals woes
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 26 09:46:31 PDT 2014
On Fri, Jul 25, 2014 at 11:27:57PM -0700, Walter Bright via Digitalmars-d wrote:
> On 7/25/2014 11:05 PM, H. S. Teoh via Digitalmars-d wrote:
[...]
> >In the meantime, I think much of the confusion comes from the current
> >documentation not be adequately clear about the reasoning behind
> >having opCmp and opEquals, so it's too easy to get the wrong
> >impression that defining opCmp is enough to make things work, or to
> >have a fuzzy inaccurate understanding for how opCmp interacts with
> >opEquals, and when/why to use each. I think a documentation PR is in
> >order.
>
> I welcome a PR from you on this!
https://github.com/D-Programming-Language/dlang.org/pull/620
T
--
Give a man a fish, and he eats once. Teach a man to fish, and he will sit forever.
More information about the Digitalmars-d
mailing list