[Issue 9771] Remove toHash from Object
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 22 19:30:39 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9771
--- Comment #5 from hsteoh at quickfur.ath.cx 2013-03-22 19:30:38 PDT ---
Also, if the default behaviour of == for structs is to do bitwise comparison,
then I think it justifies defining toHash for structs that just hashes the bit
representation of the struct. It certainly beats having to define toHash for
every single little helper struct that you write, just so you can use it in an
AA. (That's what really turned me off in C++11's unordered_map -- so much
verbosity for something that's supposed to be simple.)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list