[MacRuby] #1096: Operator redefinition fails (Fixnum)

MacRuby ruby-noreply at macosforge.org
Thu Jan 6 03:29:01 PST 2011


#1096: Operator redefinition fails (Fixnum)
--------------------------------------+-------------------------------------
 Reporter:  Knut.Olaf.Lien@…          |        Owner:  lsansonetti@…        
     Type:  defect                    |       Status:  reopened             
 Priority:  blocker                   |    Milestone:                       
Component:  MacRuby                   |   Resolution:                       
 Keywords:                            |  
--------------------------------------+-------------------------------------

Comment(by Knut.Olaf.Lien@…):

 See proper formatted transcript below::


 {{{
 EPC-knut:~ knut.olaf$ macirb
 irb(main):001:0> class Fixnum
 irb(main):002:1>   def +(o)
 irb(main):003:2>     self-o
 irb(main):004:1>   end
 irb(main):005:0> end
 => nil
 irb(main):006:0> 6+4
 => 10

 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1096#comment:3>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list