[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>

I would like to request developers meeting around April 17 or 18 in this mo=

14 messages 2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014 — Urabe Shyouhei <shyouhei@...> 2014/04/03

It's good if we have a meeting then.

[#61826] Re: Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...> 2014/04/03

Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=

[#61833] Re: Plan Developers Meeting Japan April 2014 — Martin Bo煬et <martin.bosslet@...> 2014/04/03

Hi,

[ruby-core:62017] [ruby-trunk - Bug #9740] [Open] super: no superclass method in Ruby 2.1.1

From: wei1.hu@...
Date: 2014-04-14 07:36:16 UTC
List: ruby-core #62017
Issue #9740 has been reported by Wei Hu.

----------------------------------------
Bug #9740: super: no superclass method in Ruby 2.1.1
https://bugs.ruby-lang.org/issues/9740

* Author: Wei Hu
* Status: Open
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
Below code will result into error:

~~~
super: no superclass method `foo' for #<Object:0x002b0430670fe8>
~~~

However, it can pass with Ruby 1.9 and I am not sure if it's feature changes or bug.

~~~ruby
module A
  def foo
    puts "A"
  end
end
 
module B
  def foo
    puts "B"
    super
  end
  ub_meth = instance_method :foo
  define_method :foo do
    ub_meth.bind(self).call()
  end
end
a = Object.new
a.extend A
a.extend B
a.foo
~~~

Hi, Nakada,
Thanks for your fix @ r45565, but this still has problem. If we run my original example, it will result into:
~~~
B
B
B
t.rb:9: stack level too deep (SystemStackError)
~~~

I think the difference is: in the original example, I used 'define_method :foo' to override the foo in Module B.




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

In This Thread

Prev Next