[MacRuby-devel] [MacRuby] #246: NSMutableDictionary methods cannot retrieve values for Fixnum keys
MacRuby
ruby-noreply at macosforge.org
Fri Apr 24 11:47:36 PDT 2009
#246: NSMutableDictionary methods cannot retrieve values for Fixnum keys
---------------------------------------+------------------------------------
Reporter: krishna.kotecha@… | Owner: eloy.de.enige@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords: NSMutableDictionary Hash
---------------------------------------+------------------------------------
Comment(by lsansonetti@…):
I cannot reproduce the crash, however I reproduce the bug.
{{{
$ macruby -e "h={}; h.setObject('foo',forKey:42); p h.objectForKey(42)"
nil
}}}
I think this is because our Fixnum boxed class does not implement
-[NSObject hash].
--
Ticket URL: <http://www.macruby.org/trac/ticket/246#comment:3>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list