#659: ER: Calling #== on an Obj-C object calls -isEqual:
---------------------------------------+------------------------------------
 Reporter:  joshua.balla...@…          |       Owner:  lsansone...@…        
     Type:  defect                     |      Status:  new                  
 Priority:  blocker                    |   Milestone:                       
Component:  MacRuby                    |    Keywords:                       
---------------------------------------+------------------------------------
 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
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/659>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to