#246: NSMutableDictionary methods cannot retrieve values for Fixnum keys
---------------------------------------+------------------------------------
 Reporter:  krishna.kote...@…          |       Owner:  eloy.de.en...@…         
     Type:  defect                     |      Status:  new                     
 Priority:  critical                   |   Milestone:                          
Component:  MacRuby                    |    Keywords:  NSMutableDictionary Hash
---------------------------------------+------------------------------------

Comment(by lsansone...@…):

 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/>

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to