Skip to content

Commit

Permalink
Merge pull request #648 from quickfur/foreach_reverse_delegate
Browse files Browse the repository at this point in the history
Now foreach_reverse with delegates has been deprecated.
  • Loading branch information
AndrejMitrovic committed Sep 10, 2014
2 parents 1e29f79 + 65e0847 commit e583704
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions statement.dd
Expand Up @@ -754,12 +754,11 @@ $(H4 Foreach over Delegates)
many different named looping strategies to coexist in the same
class or struct.)

$(P $(B Warning:) When $(I ForeachAggregate) is a delegate, there is
no distinction between $(D foreach) and $(D foreach_reverse). The
compiler does not try to implement reverse traversal of results
returned by the delegate when $(D foreach_reverse) is used. Therefore,
to avoid confusion, the use of $(D foreach_reverse) over delegates is
discouraged.)
$(P $(B Note:) When $(I ForeachAggregate) is a delegate, the compiler
does not try to implement reverse traversal of the results returned by
the delegate when $(D foreach_reverse) is used. This may result in code
that is confusing to read. Therefore, using $(D foreach_reverse) with a
delegate is now deprecated, and will be rejected in the future.)

$(H4 Foreach over Tuples)

Expand Down

0 comments on commit e583704

Please sign in to comment.