On Fri, 13 Apr 2001, ts wrote:

> >> class One
> >>    def + (x)
> >>       x+1
> >>    end
> 
>       def coerce(x)
>          [x, 1]
>       end

Shouldn't that really be

def coerce(x)
	[ self, x ]
end

The way it is now if you change +:

def + (x)
	x+2
end

Then you get asymmetric results:

	o = One.new

	1 + o  #--> 2
	o + 1  #--> 3

   - Eric B.

--
"Asymmetric myself"