AA with class keys compared with identity instead of opEquals

Ferhat Kurtulmuş aferust at gmail.com
Sun Sep 27 19:45:07 UTC 2020


On Sunday, 27 September 2020 at 19:37:10 UTC, Per Nordlöw wrote:
> On Sunday, 27 September 2020 at 18:39:10 UTC, Per Nordlöw wrote:
>> How do I defined an AA with class as key where keys are 
>> compared using `is` instead of `opEquals`? Do I have to store 
>> the key as a `void*`?
>
> I got a good answer at 
> https://dlang.slack.com/archives/C1ZDHBB2S/p1601234030016700

Sorry I did not understand what you meant. It would be better if 
you share the answer here. I found this also 
https://dlang.org/library/std/traits/key_type.html, but I dont 
know if it is related.


More information about the Digitalmars-d-learn mailing list