On 09/08/2010 03:16 AM, Harry Spier wrote: > > In the same way that a += 1 means a = a+1 > is it possible in Ruby to create an operator such as .! (or something > like that) such that > someObject.!someMethod gives the same result as > someObject = someObject.someMethod Even if it was (but see the other replies) it would not be a good idea. The reason is this: class BangAndNoBang def foo x = dup x.foo! x end def foo! # work end end In other words: for efficiency reasons you would always implement method x in terms of x! instead the other way round. Kind regards robert