[MacRuby-devel] [MacRuby] #389: unable to set ivar in a class derived from String, Array, Hash

MacRuby ruby-noreply at macosforge.org
Fri Oct 16 02:03:07 PDT 2009


#389: unable to set ivar in a class derived from String, Array, Hash
----------------------------+-----------------------------------------------
 Reporter:  jazzbox@…       |       Owner:  lsansonetti@…        
     Type:  defect          |      Status:  new                  
 Priority:  critical        |   Milestone:  MacRuby 0.5          
Component:  MacRuby         |    Keywords:                       
----------------------------+-----------------------------------------------
 {{{
   class Foo < String
     def foo
       @foo = 42
       @foo
     end
   end
   p Foo.new.foo
 }}}

 gives a nil

 Same issue with Hash and Array.

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



More information about the MacRuby-devel mailing list