#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 krishna.kote...@…):
This bug was discovered whilst I was working through the MacRuby article
on the (see: Mac Dev Center
http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.html).
The following is used as example code:
{{{
>> h.setObject 'bar', :forKey => 43
=> nil
>> h
=> {42=>"foo", 43=>"bar"}
}}}
And of course, trying the following causes much confusion to the newcomer:
{{{
>> h[42]
=> nil
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/246#comment:2>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel