Closed
Description
[expr.sub]/1 defines subscripting through pointer arithmetic
The expression
E1[E2]
is identical (by definition) to*((E1)+(E2))
[expr.add]/4, defining pointer arithmetic, uses syntax looking like subscripting
… if P points to element x[i] of an array object x with n elements,81 the expressions P + J and J + P (where J has the value j) point to the (possibly-hypothetical) element x[i+j]…
Not that x[i]
necessarily means subscripting expression, but I think it is still better to replace such constructs with plain English wording like
i-th element of an array object
x
instead of
element
x[i]
of an array objectx
Metadata
Metadata
Assignees
Labels
No labels
Activity
jensmaurer commentedon Mar 10, 2019
Except that we index arrays zero-based, but English does not allow us to talk about the 0-th element. We could say , though.
W-E-Brown commentedon Mar 10, 2019
jensmaurer commentedon Jun 5, 2019
Editorial meeting: We're still unhappy with "i-th", at least without further context. Say "array element i of array object x" instead, taking "array element" as a term of art.