Skip to content

Commit df0aea3

Browse files
committed
Change CT tuple -> sequence [expression.dd]
1 parent 55f935e commit df0aea3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

spec/expression.dd

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -953,18 +953,18 @@ $(GNAME IndexExpression):
953953

954954
$(P $(I PostfixExpression) is evaluated. If $(I PostfixExpression) is an
955955
expression of type static array or dynamic array, the symbol $(DOLLAR) is set to
956-
be the the number of elements in the array. If $(I PostfixExpression) is an $(I
957-
ExpressionTuple), the symbol $(DOLLAR) is set to be the the number of elements
958-
in the tuple. A new declaration scope is created for the evaluation of the
956+
be the number of elements in the array. If $(I PostfixExpression) is a $(I
957+
ValueSeq), the symbol $(DOLLAR) is set to be the number of elements
958+
in the sequence. A new declaration scope is created for the evaluation of the
959959
$(GLINK ArgumentList) and $(DOLLAR) appears in that scope only.)
960960

961-
$(P If $(I PostfixExpression) is an $(I ExpressionTuple),
961+
$(P If $(I PostfixExpression) is a $(I ValueSeq),
962962
then the $(GLINK ArgumentList) must consist of only one argument,
963963
and that must be statically evaluatable to an integral constant.
964964
That integral constant $(I n) then selects the $(I n)th
965-
expression in the $(I ExpressionTuple), which is the result
965+
expression in the $(I ValueSeq), which is the result
966966
of the $(I IndexExpression).
967-
It is an error if $(I n) is out of bounds of the $(I ExpressionTuple).
967+
It is an error if $(I n) is out of bounds of the $(I ValueSeq).
968968
)
969969

970970
$(H2 $(LNAME2 slice_expressions, Slice Expressions))
@@ -1065,8 +1065,8 @@ type:)
10651065
$(TROW $(D arr[e-a .. e-b]), $(D a - b) $(I if) $(D a >= b))
10661066
)
10671067

1068-
$(P If $(I PostfixExpression) is an $(I ExpressionTuple), then
1069-
the result of the slice is a new $(I ExpressionTuple) formed
1068+
$(P If $(I PostfixExpression) is a $(I ValueSeq), then
1069+
the result of the slice is a new $(I ValueSeq) formed
10701070
from the upper and lower bounds, which must statically evaluate
10711071
to integral constants.
10721072
It is an error if those
@@ -1299,8 +1299,8 @@ $(GNAME ArrayLiteral):
12991299
-------------
13001300

13011301
$(P If any of the arguments in the $(GLINK ArgumentList) are
1302-
an $(I ExpressionTuple), then the elements of the $(I ExpressionTuple)
1303-
are inserted as arguments in place of the tuple.
1302+
a $(I ValueSeq), then the elements of the $(I ValueSeq)
1303+
are inserted as arguments in place of the sequence.
13041304
)
13051305

13061306
$(P Array literals are allocated on the memory managed heap.
@@ -1379,8 +1379,8 @@ $(GNAME ValueExpression):
13791379
---
13801380

13811381
$(P If any of the keys or values in the $(I KeyValuePairs) are
1382-
an $(I ExpressionTuple), then the elements of the $(I ExpressionTuple)
1383-
are inserted as arguments in place of the tuple.
1382+
a $(I ValueSeq), then the elements of the $(I ValueSeq)
1383+
are inserted as arguments in place of the sequence.
13841384
)
13851385

13861386
$(H3 $(LNAME2 function_literals, Function Literals))
@@ -1999,15 +1999,15 @@ void foo()
19991999
$(TROW $(D union), $(I Type))
20002000
$(TROW $(D class), $(I Type))
20012001
$(TROW $(D interface), $(I Type))
2002-
$(TROW $(D super), $(I TypeTuple) of base classes and interfaces)
2002+
$(TROW $(D super), $(I TypeSeq) of base classes and interfaces)
20032003
$(TROW $(D enum), the base type of the enum)
2004-
$(TROW $(D function), $(ARGS $(I TypeTuple) of the function parameter types.
2004+
$(TROW $(D function), $(ARGS $(I TypeSeq) of the function parameter types.
20052005
For C- and D-style variadic functions,
20062006
only the non-variadic parameters are included.
20072007
For typesafe variadic functions, the $(D ...) is ignored.))
20082008
$(TROW $(CODE delegate), the function type of the delegate)
20092009
$(TROW $(CODE return), $(ARGS the return type of the function, delegate, or function pointer))
2010-
$(TROW $(CODE __parameters), $(ARGS the parameter tuple of a function, delegate, or function pointer.
2010+
$(TROW $(CODE __parameters), $(ARGS the parameter sequence of a function, delegate, or function pointer.
20112011
This includes the parameter types, names, and default values.))
20122012
$(TROW $(D const), $(I Type))
20132013
$(TROW

0 commit comments

Comments
 (0)