A Fresh Look at Comparisons, Take 2

Janice Caron caron800 at googlemail.com
Fri Apr 18 08:50:48 PDT 2008


On 18/04/2008, Jason House <jason.james.house at gmail.com> wrote:
>  I'm sure you could say that foo must now declare its parameters as explicit, but requiring all functions that compare A's to have explicit parameters really starts to kill the whole utility of having a base class to begin with.

That's a good point, but again, nothing /requires/ explicit
parameters. It's like anything else - if you desire the behavior, use
it; if you don't, don't.

But that is a very good observation, yes. Well spotted.



More information about the Digitalmars-d mailing list