From: dblack@... Date: 2006-04-09T23:13:37+09:00 Subject: Re: yield, binding Hi -- On Sun, 9 Apr 2006, ts wrote: >>>>>> "d" == dblack writes: > > d> remember that "the new one is the one that does new stuff", but I > > You want to say "the new one is the one that does old stuff", no ? :-) > > moulon% /usr/bin/ruby -ve 'class A; def a() end; private :a end; A.new.send(:a)' > ruby 1.8.4 (2005-12-24) [i486-linux] > moulon% > > moulon% ruby -ve 'class A; def a() end; private :a end; A.new.send(:a)' > ruby 1.9.0 (2006-03-15) [i686-linux] > -e:1:in `Kernel#send': private method `a' called for # (NoMethodError) > from -e:1 > moulon% > > moulon% ruby -ve 'class A; def a() end; private :a end; A.new.funcall(:a)' > ruby 1.9.0 (2006-03-15) [i686-linux] > moulon% OK, then I take it back: it will be hard for new users AND old users :-) David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" coming in PDF April 15, and in paper May 1! http://www.manning.com/black