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:04:25 +0330

> I don't understand, why would it be wrong to have the manual say:
>
> expr1 OP= expr2
>
> is equivalent to
>
> tmp = (expr2)
> expr1 = (expr1) OP tmp
>
> AFAK, this is what octave is doing. Is there a theory somewhere that states
> the above is plain wrong?
>
> Michael.
>
Associativity of assignment operator in many programming languages is
right to left but evaluation of expression if is guaranteed to be left
to right such an expression is no correct. Simply you first evaluate
RHS then LFS.



reply via email to

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