From: Rick DeNatale Date: 2008-02-27T21:47:28+09:00 Subject: Re: Delegate to allow subclassing Integer, Float On 2/27/08, Trans wrote: > On Feb 26, 11:24 pm, Clifford Heath wrote: > > def send(meth, *a, &b) > > # Ensure that normal sends go to __self__, not @__value > > __self__.send(meth, *a, &b) > > end ... > > This seems to be ok with 1.8, but 1.9 doesn't have __self__. > I'm surprised to see __send__ and class are not defined, since it is > easy enough to override them if need be. Ermm, he said __self__ not __send__. I don't think I'd ever heard of __self__ before, well maybe in Python, but not in Ruby. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/