From: Paul Brannan Date: 2002-04-13T03:07:05+09:00 Subject: Re: Idea for a new shorthand On Sat, Apr 13, 2002 at 01:47:27AM +0900, ts wrote: > Try this with your modified version of ruby > > class Base; def foo; puts "Base#foo"; end; end; > class Derived < Base; undef foo; end > d = Derived.new > Base.instance_method(:foo).bind(d).call() > d.foo Hmm, I see. On the one hand, I shouldn't be able to call a method that has been disabled in the derived class. On the other hand, though, being able to do this would be VERY useful (I could call a method in my base class's base class, if I needed to). Perhaps the above syntax is ugly enough that no one is going to do it by accident? Paul