Unexpected behaviour in associative array
Adam D. Ruppe
destructionator at gmail.com
Fri Apr 19 12:48:32 UTC 2019
On Friday, 19 April 2019 at 12:37:10 UTC, Arredondo wrote:
> Here's a reasonably-sized code fragment that demonstrates the
> issue.
Oh dear, I don't know what's going on there. It might just be
that toHash is secretly dependent on various attributes in the
signature.
I'd try to match the attrs exactly from this:
https://dlang.org/spec/hash-map.html#using_struct_as_key
size_t toHash() const @safe pure nothrow;
bool opEquals(ref const typeof(this) s) const @safe pure nothrow;
and see if it makes a difference.
idk though.
More information about the Digitalmars-d-learn
mailing list