octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined compound chaining behavior


From: Hossein Sajjadi
Subject: Re: undefined compound chaining behavior
Date: Tue, 10 Jun 2014 20:07:36 +0330

> So if the manual said something like the following
>
>   An expression of the form
>
>     EXPR1 OP= EXPR2
>
>   is evaluated as
>
>     temp = EXPR2; EXPR1 = (EXPR1) OP temp
>
>   where 'temp' is a placeholder temporary value storing the result of
> evaluating EXPR2.
>
> that does not resolve the issue? That seems pretty simple and clear.
> And this is what I believe everyone understands as the current and
> correct behavior of such expressions in Octave. Assignment is
> evaluated right-to-left, as the manual states, EXPR2 is evaluated
> first, and then combined with EXPR1.
>
 As I say to Michael Goffioul this expression is not correct ,becuase
order of evaluation that where guaranteed to be left to right is
violated
Hossein



reply via email to

[Prev in Thread] Current Thread [Next in Thread]