From: Paul Brannan Date: 2001-12-19T02:16:28+09:00 Subject: [ruby-talk:28878] Re: C++ preincrement operator On Wed, Dec 19, 2001 at 02:09:03AM +0900, Peter Hickman wrote: > Both - and + are unary prefix operators and there is probably a 'feature' > > in the parser that produces this behaviour. You will have to use > > x += 1 and x -= 1 The problem is not that I want to know how to increment/decrement x, but that I want to be told when I'm doing it incorrectly. I see no reason why: -------------------------1 should produce: -1 instead of an error, unless I am trying to write obfuscated Ruby. Paul