Projects

Ticket #659 (closed defect: fixed)

Opened 22 months ago

Last modified 21 months ago

ER: Calling #== on an Obj-C object calls -isEqual:

Reported by: joshua.ballanco@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.7
Component: MacRuby Keywords:
Cc:

Description

It would be nice if calling #== on an Obj-C object which defines -isEqual: used this method instead of doing a straight pointer comparison:

framework 'Foundation'

a = NSDate.dateWithNaturalLanguageString('today')
b = NSDate.dateWithNaturalLanguageString('today')
if a == b
  p :ok
elsif a.isEqual(b)
  p :ko
end

Change History

Changed 21 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.7

Should be fixed in r4063.

Note: See TracTickets for help on using tickets.