Issue #2402 has been updated by shugo (Shugo Maeda).


shugo (Shugo Maeda) wrote:
> instance_eval??中???super???????????????正???????????????????????????????? r36640 ?????????????????辿??
> ????????????????????????  Bug #6907 ?????????????????? r36795 ???revert?????????????
> 
> ????NotImplementedError???raise??????????????????????????????????super?????????????????????????????
> ??????????(self???type????????????????????????????)TypeError???妥????????????????

?????足?????????1.8????instance_eval?????????????self?????????????rb_eval??????????????????????????????????
instance_eval??中???super??????????????????????????self???使??????????????????????????????????????????self????????????????
????????????????????????????????????
????orphan???Proc??????super?????????????????????????????????????????????????????????????

----------------------------------------
Bug #2402: super in instance_eval
https://bugs.ruby-lang.org/issues/2402#change-34001

Author: shugo (Shugo Maeda)
Status: Open
Priority: High
Assignee: ko1 (Koichi Sasada)
Category: 
Target version: 2.0.0
ruby -v: ruby 1.9.2dev (2009-11-24 trunk 25909) [i686-linux]


=begin
 instance_eval???????????????super?????????instance_eval??????????????
 self??対??????super?????????????????????????????????
 
 defiant:build$ cat t.rb
 class Foo
   def foo
     p self
   end
 end
 
 class Bar < Foo
   def foo
     x = Object.new
     x.instance_eval do
       super
     end
   end
 end
 
 Bar.new.foo
 defiant:build$ ./ruby-trunk.1124 -v t.rb
 ruby 1.9.2dev (2009-11-24 trunk 25909) [i686-linux]
 #<Object:0x8590f6c>
 
 Foo#foo???????????????self???Object????????????????????????????????????????????
 ????????信????????????????????????????????????添????????????
=end



-- 
http://bugs.ruby-lang.org/