From: Robert Klemme Date: 2003-09-22T21:49:47+09:00 Subject: Re: Operator overloading "Meino Christian Cramer" schrieb im Newsbeitrag news:20030921.143434.92569875.Meino.Cramer@gmx.de... > Is it possible to overload operators like += -= &&= and such ? > > And how can I do this ? You can't. And you don't need to. As others pointed out already, Ruby treats all the assignment arithmetic operators as shortcuts and invokes the appropriate operator. So foo (op)= bar <=> foo = foo (op) bar Where (op) is pretty much every operator you'd like to put there. Implementing Foo#+ gives you Foo+= automatically. Regards robert