Closures and loop scope

Max Klyga email at domain.com
Tue Jun 4 23:44:02 PDT 2013


On 2013-06-04 19:19:56 +0000, Idan Arye said:

> snip

C# used to behave the same as D behaves now, but in the latest update 
to C# was changed to properly capture by value.
Closures should capture (and in most functional languages they do) by 
value (at least primitive types) to avoid confusion.



More information about the Digitalmars-d mailing list