[MacRuby-devel] [macruby] #61: ObjectSpace.each_object(Foo) doesn't yield subclasses

macruby ruby-noreply at macosforge.org
Sat May 24 20:18:26 PDT 2008


#61: ObjectSpace.each_object(Foo) doesn't yield subclasses
-------------------------------+--------------------------------------------
 Reporter:  kreatix at gmail.com  |       Owner:  lsansonetti at apple.com
     Type:  defect             |      Status:  new                  
 Priority:  blocker            |   Milestone:                       
Component:  MacRuby            |    Keywords:                       
-------------------------------+--------------------------------------------
 Runing this code:

 {{{ a = []; ObjectSpace.each_object(Module) { |c| a << c.class }; p a.uniq
 }}}

 on MRI:

 {{{ # => [Module, Class] }}}

 On Macruby:

 {{{ # => [Module] }}}

-- 
Ticket URL: <http://ruby.macosforge.org/trac/ticket/61>
macruby <http://ruby.macosforge.org/>


More information about the MacRuby-devel mailing list