Skip to content

Commit 6f09483

Browse files
authored
static foreach is not the same as foreach for sequences (#4270)
Fixes #4267.
1 parent 830652e commit 6f09483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/statement.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ $(P
11011101
If the aggregate expression is a
11021102
$(DDSUBLINK spec/template, variadic-templates, sequence),
11031103
the loop body is statically expanded once for each element. This is
1104-
the same as $(DDSUBLINK spec/version, staticforeach, Static Foreach)
1105-
on a sequence.
1104+
similar to a $(DDSUBLINK spec/version, staticforeach, *StaticForeachStatement*)
1105+
on a sequence, though there is a separate scope for each expansion.
11061106
)
11071107
$(P There
11081108
can be one or two iteration symbols declared. If one, then the symbol

0 commit comments

Comments
 (0)