[Issue 10525] Struct as key in Associative array ignores value semantics
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jul  4 10:35:41 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=10525
Kenji Hara <k.hara.pg at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
Struct equality is now member-wise, and runtime hash calculation
(TypeInfo.getHash) should be consistent with the equality result.
With two equivalent type objects a and b, it should be guaranteed:
 assert(a != b || typeid(typeof(a)).getHash(&a) ==
typeid(typeof(b)).getHash(&b));
*** This issue has been marked as a duplicate of issue 13045 ***
--
    
    
More information about the Digitalmars-d-bugs
mailing list