[macruby] #99: fake pointers in collections
#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 | Keywords: -----------------------------------+---------------------------------------- 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. -- Ticket URL: <http://www.macruby.org/trac/ticket/99> macruby <http://macruby.org/>
#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/>
#99: fake pointers in collections -----------------------------------+---------------------------------------- Reporter: lsansonetti@apple.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.3 Component: MacRuby | Resolution: fixed Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => fixed Comment: Fixed in trunk. {{{ $ macruby -e "p [true].description" "(\n 1\n)" $ macruby -e "a=NSArray.arrayWithObject('foo'); p a.index(:foo)" 0 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/99#comment:2> macruby <http://macruby.org/>
participants (1)
-
macruby