Skip to content

Commit 2f2c237

Browse files
JohanEngelenPetarKirov
authored andcommitted
Improve function argument order spec. (#2264)
Related recent change: #2132
1 parent 63648ca commit 2f2c237

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/expression.dd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ $(HEADERNAV_TOC)
1111

1212
$(H2 $(LNAME2 order-of-evaluation, Order Of Evaluation))
1313

14-
$(P Binary expressions and function arguments are evaluated in strictly
15-
left-to-right order.)
14+
$(P Binary expressions are evaluated in strictly left-to-right order.
15+
Function arguments are evaluated in strictly left-to-right order for
16+
functions with `extern (D)` $(DDSUBLINK spec/attribute, linkage, linkage).)
1617

1718
-------------
1819
import std.conv;
@@ -25,10 +26,10 @@ left-to-right order.)
2526
$(IMPLEMENTATION_DEFINED
2627
$(OL
2728
$(LI The order of evaluation of the operands of $(GLINK AssignExpression).)
28-
$(LI The order of evaluation of function arguments.)
29+
$(LI The order of evaluation of function arguments for functions with linkage other than `extern (D)`.)
2930
))
3031

31-
$(BEST_PRACTICE Even though the order of evaluation is well defined, writing code that
32+
$(BEST_PRACTICE Even though the order of evaluation is well-defined, writing code that
3233
depends on it is rarely recommended.)
3334

3435
$(H2 $(LEGACY_LNAME2 Expression, expression, Expressions))

0 commit comments

Comments
 (0)