Projects

Ticket #99 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

fake pointers in collections

Reported by: lsansonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.3
Component: MacRuby Keywords:
Cc:

Description (last modified by lsansonetti@…) (diff)

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.

Change History

Changed 2 years ago by lsansonetti@…

  • description modified (diff)

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk.

$ macruby -e "p [true].description"
"(\n    1\n)"
$ macruby -e "a=NSArray.arrayWithObject('foo'); p a.index(:foo)"
0
Note: See TracTickets for help on using tickets.