[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.
- Re: undefined compound chaining behavior, (continued)
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/09
- Re: undefined compound chaining behavior, Mike Miller, 2014/06/09
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Ben Abbott, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Mike Miller, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Mike Miller, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Michael Goffioul, 2014/06/10
- Re: undefined compound chaining behavior,
Hossein Sajjadi <=
- Re: undefined compound chaining behavior, Mike Miller, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Michael D. Godfrey, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Mike Miller, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Jordi GutiƩrrez Hermoso, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/11
- Re: undefined compound chaining behavior, Jordi GutiƩrrez Hermoso, 2014/06/12
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/12