I want to work on this. Could you please give me a starting point for this? Should I use the toHash() functionality from druntime?
Comment #2 by jack — 2018-04-04T14:34:14Z
(In reply to vladvitan from comment #1)
> I want to work on this. Could you please give me a starting point for this?
> Should I use the toHash() functionality from druntime?
Yes, or you can use typeid(var).getHash(&var).
You'll have to put this inside of a trusted lambda in order for it to be @safe.
The main thing you need to make sure is that it follows the logic of opEquals, i.e. two things have the same hash according to opEquals' logic.