@@ -105,10 +105,10 @@ expansion like:
105
105
${count(x)} $( $x )*
106
106
```
107
107
108
- the expression ` ${count(x)} ` will expand to an integer literal equal to the
109
- number of times the ` $( $x )* ` repetition will repeat. For example, if
110
- the metavariable ` $x ` repeats four times then it will expand to the integer
111
- literal ` 4 ` .
108
+ the expression ` ${count(x)} ` will expand to an unsuffixed integer literal
109
+ equal to the number of times the ` $( $x )* ` repetition will repeat. For
110
+ example, if the metavariable ` $x ` repeats four times then it will expand to
111
+ the integer literal ` 4 ` .
112
112
113
113
If repetitions are nested, then an optional depth parameter can be used to
114
114
limit the number of nested repetitions that are counted. For example, a macro
@@ -128,7 +128,8 @@ of repetitions of `$x`.
128
128
Within a repetition, the ` ${index()} ` and ` ${length()} ` metavariable
129
129
expressions give the index of the current repetition and the length of the
130
130
repetition (i.e., the number of times it will repeat). The index value ranges
131
- from ` 0 ` to ` length - 1 ` , and the expanded values are integer literals.
131
+ from ` 0 ` to ` length - 1 ` , and the expanded values are unsuffixed integer
132
+ literals so they are also suitable for tuple indexing.
132
133
133
134
For nested repetitions, the ` ${index()} ` and ` ${length()} ` metavariable
134
135
expressions expand to the inner-most index and length respectively.
0 commit comments