#701: Hash: complex keys don't work correctly
----------------------------+-----------------------------------------------
Reporter: jazz...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone: MacRuby 0.7
Component: MacRuby | Keywords:
----------------------------+-----------------------------------------------
Comment(by lsansone...@…):
The semantics of Ruby Hash use both #hash and #eql? to determine keys
equality. These 2 date objects share the same hash code but #eql? doesn't
return true. The best way is to make NSObject#== and #eql? call -[NSObject
isEqual:], as suggested by #659.
--
Ticket URL: <http://www.macruby.org/trac/ticket/701#comment:1>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel