Actions
Backport #621
closedWhen to call Class#inherited
Status:
Closed
Assignee:
Description
=begin
1.8のバグか1.9のバグかよくわからんのですが、以下のようにClass#inheritedを実行するタイミングが変わっています。
% ruby -ve'
class C
def C.inherited(d)
raise "inherited"
end
end
begin
Class.new C do
raise "new"
end
rescue
p $!
end
'
ruby 1.9.0 (2008-10-08 revision 17576) [x86_64-linux]
#<RuntimeError: inherited>
% ruby -ve'
class C
def C.inherited(d)
raise "inherited"
end
end
begin
Class.new C do
raise "new"
end
rescue
p $!
end
'
ruby 1.8.7 (2008-10-08 revision 17572) [x86_64-linux]
#<RuntimeError: new>
=end
Actions
Like0
Like0Like0Like0Like0Like0Like0