From: dhtapp Date: 2003-09-22T03:47:34+09:00 Subject: Re: Operator overloading Hi, I'm pretty new to Ruby, so someone may step in quickly to correct me. But my understanding is that, for any of the standard dyadic operators (+, -, etc.) the shorthand j += 1 is expanded before evaluation to: j = j + 1 I've experimented with a couple of overloads of the '+' operator, and I always got exactly what I expected from '+=' for free...Principle of Least Surprise, indeed :-) - dan "Meino Christian Cramer" wrote in message news:20030921.143434.92569875.Meino.Cramer@gmx.de... > Is it possible to overload operators like += -= &&= and such ? > > And how can I do this ? > > Kind regards and have a nice weekend, > Meino >