[Issue 11591] `std.typecons.Tuple`-s with classes fails at runtime as associative array keys

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 31 18:53:11 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11591



--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2013-12-31 18:53:04 PST ---
I did some more digging on this. The fundamental problem is that for AA's to
work, then opCmp() has to work. opCmp needs an ordering, a "<" operation. But
there is no defined ordering for Object.

Hence, it fails.

I don't see how const makes any difference. Nor is this really about Tuples,
it's about using Object as a key for an associative array.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list