#701: Hash: complex keys don't work correctly ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- The generated hash-key of two objects must be the same when the objects are equal. {{{ $ cat h.rb d1 = NSCalendarDate.dateWithYear( 2010, month:5, day:2, hour:0, minute:0, second:0, timeZone:nil) d2 = NSCalendarDate.dateWithYear( 2010, month:5, day:2, hour:0, minute:0, second:0, timeZone:nil) h = { d1 => :x} h[d2] = :y p h }}} {{{ $ macruby_select 0.7 h.rb {#<NSCalendarDate:0x200013a20>=>:x, #<NSCalendarDate:0x20001ff60>=>:y} }}} v0.5 was OK: {{{ $ macruby_select 0.5 h.rb {#<NSCalendarDate:0x200026900>=>:y} }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/701> MacRuby <http://macruby.org/>