#99: fake pointers in collections -----------------------------------+---------------------------------------- Reporter: lsansonetti@apple.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.3 Component: MacRuby | Resolution: Keywords: | -----------------------------------+---------------------------------------- Old description:
Currently, when adding a fake pointer type (true, false, nil, fixnum or symbol) to a MacRuby collection, the value is simply passed without being converted to an Objective-C value. This breaks Cocoa APIS that expect a given array or dictionary to only contain Objective-C objects.
Example: {{{[true].description}}}.
This breaks LimeChat.
New description: Currently, when adding a fake pointer type (true, false, nil, fixnum or symbol) to a MacRuby collection, the value is simply passed without being converted to an Objective-C value. This breaks Cocoa APIS that expect a given array or dictionary to only contain Objective-C objects. Example: {{{[true].description}}}. Other example: {{{a=NSArray.arrayWithObject('foo'); a.index(:foo)}}}. This breaks LimeChat. -- Ticket URL: <http://www.macruby.org/trac/ticket/99#comment:1> macruby <http://macruby.org/>