Skip to content

Commit

Permalink
fix Issue 3735 - op=
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 23, 2012
1 parent 8ed7c3d commit 2b757bd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions expression.dd
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,22 @@ $(V2
Assignment operator expressions, such as:

--------------
$(I a op= b)
a $(I op)= b
--------------

are semantically equivalent to:

--------------
$(I a = a op b)
a = cast(typeof(a))(a $(I op) b)
--------------

except that operand $(I a) is only evaluated once.
$(P except that:)

$(UL
$(LI operand $(D a) is only evaluated once)
$(LI overloading $(I op) uses a different function than overloading $(I op)= does)
$(LI the left operand of $(D >>>=) does not undergo integral promotions before shifting)
)

<h2>Conditional Expressions</h2>

Expand Down

0 comments on commit 2b757bd

Please sign in to comment.