A suggestion on keyword for_each
monarch_dodra
monarchdodra at gmail.com
Sat Aug 10 00:59:16 PDT 2013
On Saturday, 10 August 2013 at 01:33:58 UTC, Dicebot wrote:
> `foreach_reverse` is a major design mistake considering the
> fact that it requires a very specific range type, contrary to
> normal range. For lot of ranges concept of iteration order is
> simply not defined making `foreach_reverse` useless. And in
> rare cases when it is needed, it can be replaced with plain
> `for`.
>
> Hardly does any harm, but definitely not worth putting any
> efforts into it.
foreach (foreach_reverse) work like a charm for iterating over
dchars in a narrow string though.
More information about the Digitalmars-d
mailing list