[Issue 1429] Equality for associative arrays doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 24 17:27:11 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1429
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Keywords| |wrong-code
------- Comment #1 from smjg at iname.com 2007-08-24 19:27 -------
BTW there's a bug in your equals implementation: it ignores keys that are in
container but not in other. The easiest way to fix ti is to add this at the
beginning of the function:
if (container.length != other.length) return false;
What is tmp for? Your code doesn't use it at all.
--
More information about the Digitalmars-d-bugs
mailing list