[Issue 15367] array of delegates comparison fails
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Nov 20 04:32:41 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15367
--- Comment #1 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
and a fix:
diff --git a/src/object.d b/src/object.d
index 4ce7670..84de07a 100644
--- a/src/object.d
+++ b/src/object.d
@@ -770,6 +770,12 @@ class TypeInfo_Delegate : TypeInfo
         return c && this.deco == c.deco;
     }
+    override bool equals(in void* p1, in void* p2) const
+    {
+        alias dg = void delegate (int);
+        return *cast(dg *)p1 == *cast(dg *)p2;
+    }
+
     // BUG: need to add the rest of the functions
     override @property size_t tsize() nothrow pure const
--
    
    
More information about the Digitalmars-d-bugs
mailing list