AA keys
    Frits van Bommel 
    fvbommel at REMwOVExCAPSs.nl
       
    Mon Mar 17 08:01:57 PDT 2008
    
    
  
bearophile wrote:
> I can use my equalAA() function for most purposes, but I presume hashing needs an == too, and I can't fix that with an external function.
Yeah, TypeInfo.{getHash,equals,compare} aren't implemented for 
TypeInfo_AssociativeArray, TypeInfo_Function and TypeInfo_Delegate in 
either Phobos or Tango. And all of those are required for the relevant 
types to work correctly as AA keys, IIRC.
Of course, you could implement them and attach the patch to the relevant 
bug report... which didn't exist yet.
Remedied that last part:
Phobos: <http://d.puremagic.com/issues/show_bug.cgi?id=1926>
Tango: <http://www.dsource.org/projects/tango/ticket/988>
    
    
More information about the Digitalmars-d-learn
mailing list