From: "Brian Schröder" Date: 2005-03-03T18:54:36+09:00 Subject: Re: post inc problem On Thu, 3 Mar 2005 15:14:44 +0900, Sebesty�n G�bor wrote: > Hi, > > A quick and dumb question: does Ruby (1.6) support postincrementation > like C++? I mean: " x++ " expression where x is a numeric variable. > Thanks, In ruby every operation is a method call. You can make this visible by writing 5.+(5) So a ++ operation would mean change 5 to be 6. And that would be quite inconsistent: Numbers: 1,2,3,4,5,6,7.... 5++ Numbers: 1,2,3,4,6,6,7... ;) So no chance you will ever find r++ in ruby. hope to help, Brian > > G�bor -- Brian Schr�der http://ruby.brian-schroeder.de/