On Sat, Apr 13, 2002 at 09:18:34PM +0900, ts wrote:
>  Can you give an example for this, because your first example can be
>  written 
> 
>   class Base; def foo; puts "Base#foo"; end; end;
>   class Derived < Base; end
>   d = Derived.new
>   Derived.instance_method(:foo).bind(d).call()

Sure:
  class Base; def foo; puts "Base#foo"; end; end;
  class Derived < Base; def foo; puts "Derived#foo"; end; end
  d = Derived.new
  Derived.instance_method(:foo).bind(d).call()

This will print "Derived#foo".  The goal is to print "Base#foo" instead.

Paul