You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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 object x
The text was updated successfully, but these errors were encountered:
On Mar 10, 2019, at 2:56 PM, Jens Maurer ***@***.***> wrote:
... English does not allow us to talk about the 0-th element.
Perhaps it does, after all. According to my Mac's dictionary:
zeroth |ˈzi(ə)rōTH, ˈzēˌrōTH|
adjective
immediately preceding what is regarded as first in a series.
ORIGIN late 19th cent.: from zero <x-dictionary:r:m_en_us1307976:com.apple.dictionary.NOAD> + -th1 <x-dictionary:r:m_en_us1298080:com.apple.dictionary.NOAD>.
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.
[expr.sub]/1 defines subscripting through pointer arithmetic
[expr.add]/4, defining pointer arithmetic, uses syntax looking like subscripting
Not that
x[i]
necessarily means subscripting expression, but I think it is still better to replace such constructs with plain English wording likeinstead of
The text was updated successfully, but these errors were encountered: