On 15.10.2009 17:37 in vedit-macro-language Pauli Lindgren wrote:
>
> Operator -= does not work as expected. Is this a bug?
>
> For example try this:
> #1 = 10
> #1 -= 5-4
>
> After the above commands have been executed, the value of #1 is 1.
> One would expect that it would be 9.
>
> You must add parenthesis in order to make this work correctly,
> i.e. #1 -= (5-4)
>
> However, += works as expected.
I would say it's a bug.
#1 = #1 - 5 - 4
#1 = #1 - (5 - 4)
Christian
|
|