Bulat Ziganshin wrote:

>Hello Peter,
>
>Friday, October 11, 2002, 12:37:03 PM, you wrote:
>
>PH> The x+=1 and x-=1 constructs can only be used as prefix operators, as in:
>
>irb(main):007:0>> x = 3
>PH> 3
>irb(main):008:0>> (x+=1) * 2
>PH> 8
>irb(main):009:0>> x
>PH> 4
>
>i don't understand this. may be your figure out that (x+=1)*=2
>construstion is impossible?
>
>
>

Now that you mention it...

irb(main):001:0> x = 3
3
irb(main):002:0> (x+=1)*=2
SyntaxError: compile error
(irb):2: parse error
(x+=1)*=2
        ^
    from (irb):2
irb(main):003:0>

Have you actually used Ruby?