#378: Macruby 0.5 allows instantiation of a Module instance
---------------------------------------+------------------------------------
 Reporter:  keith.gautre...@…          |       Owner:  lsansone...@…        
     Type:  defect                     |      Status:  new                  
 Priority:  minor                      |   Milestone:  MacRuby 0.5          
Component:  MacRuby                    |    Keywords:                       
---------------------------------------+------------------------------------

Comment(by m...@…):

 Just wanted to point out that the underlying problem here is that
 'Module.new' is returning an anonymous class instead of an anonymous
 module, which is why calls to 'new' are working.  The following example
 shows what's being returned:

 {{{
 a = Module.new do; end

 puts a
 }}}

 Ruby 1.9 prints '#<Module:0x...>'

 while MacRuby 0.6 prints '#<Class:0x...>'

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

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to