But shouldn't copy be redeclared every loop iteration (or the compiler could pretend to redeclare it).Because "copy" is still modified every time "i" is.
On Thursday, 30 April 2015 at 01:19:45 UTC, Vladimir Panteleev
wrote:
- Closure capture loop variables Freddy via Digitalmars-d
- Re: Closure capture loop variabl... Vladimir Panteleev via Digitalmars-d
- Re: Closure capture loop var... Freddy via Digitalmars-d
- Re: Closure capture loop... Vladimir Panteleev via Digitalmars-d
- Re: Closure capture ... via Digitalmars-d
- Re: Closure cap... Vladimir Panteleev via Digitalmars-d
- Re: Closure... Ali Çehreli via Digitalmars-d
- Re: Closure... ketmar via Digitalmars-d
- Re: Closure... via Digitalmars-d
- Re: Closure... Walter Bright via Digitalmars-d
- Re: Clo... Adam D. Ruppe via Digitalmars-d
- Re: Clo... Walter Bright via Digitalmars-d
- Re: Clo... deadalnix via Digitalmars-d