[MacRuby-devel] [MacRuby] #297: ObjectSpace.each_object returns Class and Module objects when it shouldn't

MacRuby ruby-noreply at macosforge.org
Sat Jul 18 11:47:20 PDT 2009


#297: ObjectSpace.each_object returns Class and Module objects when it shouldn't
--------------------------------+-------------------------------------------
 Reporter:  ned@…               |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  minor               |   Milestone:  MacRuby 0.5          
Component:  MacRuby             |    Keywords:                       
--------------------------------+-------------------------------------------

Comment(by lsansonetti@…):

 Can't reproduce this with experimental ToT

 {{{
 $ ./miniruby -e "p
 ObjectSpace.each_object(String).reject{|o|o.class.ancestors.include?(String)}.map{|o|o.class}.uniq"
 [NSString]
 $ ./miniruby -e "p MACRUBY_REVISION"
 "svn revision 2032 from
 http://svn.macosforge.org/repository/ruby/MacRuby/branches/experimental"
 }}}

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



More information about the MacRuby-devel mailing list