[Issue 4088] opEquals not called on interfaces
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 8 19:10:48 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4088
dawg at dawgfoto.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dawg at dawgfoto.de
--- Comment #12 from dawg at dawgfoto.de 2012-02-08 19:10:45 PST ---
It think the proposal in #5459 goes into the right direction.
One point of it is to prefer interface opEquals over a downcast.
Also, if an interface had an opEquals with a different signature, then
Object.opEquals becomes hidden.
interface IA
{
bool opEquals(IA o);
}
class A
{
bool opEquals(IA o) { return false; }
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list