From: Marnen Laibow-Koser Date: 2010-02-17T01:00:27+09:00 Subject: Re: Why no ++ and --? lith wrote: >> ++ and -- (both prefix and postfix), were they to be added to Ruby, should >> be implemented as little more than syntactic sugar. > > I find that issue interesting in a slightly different perspective. > Shouldn't it be possible to implement that operator right in ruby and > doesn't it point to a shortcoming that there is no way to implement it > (other than using a decorator). No. The mechanics of assignment in Ruby are such that ++ is simply not compatible with the structure of the language. It belongs to a different programming paradigm. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.