[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Arithmetic assignment side-effects

**From**: |
Chris Down |

**Subject**: |
Re: Arithmetic assignment side-effects |

**Date**: |
Sun, 4 Aug 2013 13:29:22 +0200 |

**User-agent**: |
Mutt/1.5.21 (2010-09-15) |

On 2013-08-03 17:04, Dan Douglas wrote:
>* Is it specified what the value of x should be after this expression?*
>
>* x=0; : $((x+=x=1))*
I don't know if it is specified in a standard (I suspect it may be undefined),
but it looks pretty clear to me that the answer should be 2. Has anyone proposed
logic that would suggest it should be 1?

**
**`pgphKRvDpWoLk.pgp`

*Description:* PGP signature

**Arithmetic assignment side-effects**, *Dan Douglas*, `2013/08/03`
**Re: [ast-users] Arithmetic assignment side-effects**, *Roland Mainz*, `2013/08/03`
**RE: [ast-users] Arithmetic assignment side-effects**, *Janis Papanagnou*, `2013/08/03`
**Re: Arithmetic assignment side-effects**,
*Chris Down* **<=**
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/04`
**Re: Arithmetic assignment side-effects**, *Chris Down*, `2013/08/04`
**Re: Arithmetic assignment side-effects**, *Linda Walsh*, `2013/08/04`
**Re: Arithmetic assignment side-effects**, *Dan Douglas*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *Linda Walsh*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *DJ Mills*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *DJ Mills*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/06`
**Re: Arithmetic assignment side-effects**, *Dan Douglas*, `2013/08/06`