Skip to content

Commit 1a4e37c

Browse files
jensmaurerzygoloid
authored andcommitted
[expr.compound] Use sequencing on expressions
as defined in [intro.execution] as an abbreviation for value computations and side effects.
1 parent 51f1b73 commit 1a4e37c

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

source/expressions.tex

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6325,13 +6325,9 @@
63256325
\pnum
63266326
The result is a \tcode{bool}.
63276327
\indextext{operator!side effects and logical AND}%
6328-
If the second expression is evaluated, every
6329-
\indextext{value computation}%
6330-
value computation and
6331-
\indextext{side effects}
6332-
side
6333-
effect associated with the first expression is sequenced before every
6334-
value computation and side effect associated with the second expression.
6328+
If the second expression is evaluated,
6329+
the first expression is sequenced before
6330+
the second expression\iref{intro.execution}.
63356331

63366332
\rSec2[expr.log.or]{Logical OR operator}%
63376333
\indextext{expression!logical OR}%
@@ -6356,13 +6352,9 @@
63566352
\pnum
63576353
The result is a \tcode{bool}.
63586354
\indextext{operator!side effects and logical OR}%
6359-
If the second expression is evaluated, every
6360-
\indextext{value computation}%
6361-
value computation and
6362-
\indextext{side effects}%
6363-
side effect
6364-
associated with the first expression is sequenced before every value computation
6365-
and side effect associated with the second expression.
6355+
If the second expression is evaluated,
6356+
the first expression is sequenced before
6357+
the second expression\iref{intro.execution}.
63666358

63676359
\rSec2[expr.cond]{Conditional operator}%
63686360
\indextext{expression!conditional operator}%
@@ -6382,11 +6374,9 @@
63826374
evaluated and if it is \tcode{true}, the result of the conditional
63836375
expression is the value of the second expression, otherwise that of the
63846376
third expression. Only one of the second and third expressions is
6385-
evaluated. Every
6386-
\indextext{value computation}%
6387-
value computation and side effect associated with the
6388-
first expression is sequenced before every value computation and side
6389-
effect associated with the second or third expression.
6377+
evaluated.
6378+
The first expression is sequenced before
6379+
the second or third expression\iref{intro.execution}.
63906380

63916381
\pnum
63926382
If either the second or the third operand has type \tcode{void},
@@ -6777,11 +6767,8 @@
67776767
A pair of expressions separated by a comma is evaluated left-to-right;
67786768
the left expression is
67796769
a discarded-value expression\iref{expr.prop}.
6780-
Every
6781-
\indextext{value computation}%
6782-
value computation and side effect
6783-
associated with the left expression is sequenced before every value
6784-
computation and side effect associated with the right expression.
6770+
The left expression is sequenced before
6771+
the right expression\iref{intro.execution}.
67856772
\indextext{operator!side effects and comma}%
67866773
The type and value of the
67876774
result are the type and value of the right operand; the result is of the same

0 commit comments

Comments
 (0)