[MacRuby-devel] [MacRuby] #609: Constants and methods are not copied when cloning modules
MacRuby
ruby-noreply at macosforge.org
Mon Feb 8 09:04:49 PST 2010
#609: Constants and methods are not copied when cloning modules
---------------------------------+------------------------------------------
Reporter: mred@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
clone_test.rb
{{{
module A
CONST_A = 1
def method_a; end
end
B = A.clone
[A, B].each {|m| puts "#{m}, #{m.constants},
#{m.instance_methods(false)}"}
}}}
results
{{{
$ ruby clone_test.rb
A, [:CONST_A], [:method_a]
B, [:CONST_A], [:method_a]
$ macruby clone_test.rb
A, [:CONST_A], [:method_a]
B, [], []
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/609>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list