Skip to content

Commit 79d10c8

Browse files
committed
Define i straight after first use, add pointer addition link
1 parent 083a41a commit 79d10c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/expression.dd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,9 +1238,10 @@ $(GNAME IndexExpression):
12381238
$(P $(I PostfixExpression) is evaluated.
12391239
If $(I PostfixExpression) is an expression of static or
12401240
dynamic array type, the result of the indexing is an lvalue
1241-
of the *i*th element in the array.
1242-
If $(I PostfixExpression) is a pointer `p`, the result is `*(p + i)`.
1243-
In each case, `i` is an integer evaluated from $(I ArgumentList).
1241+
of the *i*th element in the array, where `i` is an integer
1242+
evaluated from $(I ArgumentList).
1243+
If $(I PostfixExpression) is a pointer `p`, the result is
1244+
`*(p + i)` (see $(RELATIVE_LINK2 pointer_arithmetic, Pointer Arithmetic)).
12441245
)
12451246

12461247
$(P If $(I PostfixExpression) is a $(DDSUBLINK spec/template, variadic-templates, $(I ValueSeq))

0 commit comments

Comments
 (0)