[MacRuby-devel] [MacRuby] #378: Macruby 0.5 allows instantiation of a Module instance

MacRuby ruby-noreply at macosforge.org
Mon Feb 1 19:12:31 PST 2010


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

Comment(by mred@…):

 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/>



More information about the MacRuby-devel mailing list