Issue #2402 has been updated by matz (Yukihiro Matsumoto).


????????????????止????????????????

Matz.

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

Author: shugo (Shugo Maeda)
Status: Assigned
Priority: High
Assignee: matz (Yukihiro Matsumoto)
Category: core
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/