object.opEquals return type
Edward Diener
eddielee_no_spam_here at tropicsoft.com
Sun Feb 24 08:54:57 PST 2008
Janice Caron wrote:
> On 24/02/2008, Edward Diener <eddielee_no_spam_here at tropicsoft.com> wrote:
>> Why is the return type of object.opEquals an 'int' rather than a 'bool' ?
>
> I haven't the faintest idea. However, I have submitted to bugzilla
> that the signature of opEquals (and opCmp, toString, etc.) should be
> fixed for const correctness. Perhaps the return type could be changed
> to bool in the same move? As in
>
> const bool opEquals(const(Object) o)
I fully agree that you have it correct above.
More information about the Digitalmars-d
mailing list