2012年4月9日10:07 Jonathan M Davis <[email protected]>:
> There really should be errors for opEquals, opCmp, toString, and toHash with
> incorrect signatures,

It is difficult to detect *incorrect signatures*, because compiler
cannot judge it is a mistake of programmer, or is intended one of him.

> and for any of them that need multiple overloads, it
> should complain not only if any of the overloads are incorrect but if any are
> missing. The fact that it's sort that's complaining makes it very hard to
> determine what's actually wrong.

At least, we should fix const system holes (e.g bug1824 - Object not
const correct) before adding this kind of enforcements. Otherwise
compiler may block some user codes that picks the const system holes
but works as expected.

Kenji Hara
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to