[Issue 4088] opEquals not called on interfaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 18 15:54:02 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4088


Trass3r <mrmocool at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid


--- Comment #5 from Trass3r <mrmocool at gmx.de> 2011-02-18 15:51:23 PST ---
I think this should be tackled at a deeper level, probably somewhere around
MATCH TypeClass::implicitConvTo(Type *to) in mtype.c

to allow implicit conversions of interfaces to Object in general.

Then also this works:

void foo(Object o) {}
Interface i;

foo(i);
// or 
Object o = i;

-- 
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