|
From: | Richard Crozier |
Subject: | Re: undefined compound chaining behavior |
Date: | Fri, 13 Jun 2014 09:06:03 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 |
On 13/06/2014 07:31, Hossein Sajjadi wrote:
On 6/13/14, Jordi Gutiérrez Hermoso <address@hidden> wrote:On Fri, 2014-06-13 at 04:54 +0330, Hossein Sajjadi wrote:if the compiler decides to evaluate the expression from right to left the result will be 10.I don't know how else to say this. You are wrong. - Jordi G. H.I am not wrong, it is the c++ standard. Evaluations are unsequenced: "Except where noted, evaluations of operands of individual operators and of subexpressions of individual expressions are unsequenced."§1.9
No, I'm afraid Jordi's right, you are wrong. I think we'll all have to just agree to disagree with you on this one.
Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
[Prev in Thread] | Current Thread | [Next in Thread] |