Closure capture loop variables

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri May 1 10:51:23 PDT 2015


On 4/30/2015 5:55 AM, Vladimir Panteleev wrote:
> I think Freddy's programs are working as designed.

Yes, they are.

D closures capture variables by reference. No, we're not changing that.


More information about the Digitalmars-d mailing list