Foreach problem

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Jan 10 18:59:09 PST 2009


On Sat, Jan 10, 2009 at 9:33 PM, Tim M <a at b.com> wrote:
>
> Why is this an error. Dmd wants to make sure that I declare a new variable
> in the foreach statement and not use an existing one?

You can't reuse existing variables as foreach loop indices, long story short.


More information about the Digitalmars-d-learn mailing list