From: Meino Christian Cramer Date: 2003-09-21T21:32:55+09:00 Subject: Operator overloading Hi, With Ruby operaotr overloading is simply done by a definition like class foo ... def +( other ) # some code end ... end I thought I did something very clever ;) by defining also: class foo ... def +=( other ) # some code end ... end but Ruby wasn't impressed and gave me a SYNTAX ERROR instead on the first opening "(". Is it possible to overload operators like += -= &&= and such ? And how can I do this ? Kind regards and have a nice weekend, Meino