2 ms·
More generally allow the closure to write to its environment. That is the normal behaviour of closures in imperative langages, Java being the major exception be
by masklinn 4y ago
More generally allow the closure to write to its environment. That is the normal behaviour of closures in imperative langages, Java being the major exception because it rejects closing over non-final variable (and obviously that only blocks assignment, if the object is mutable you can do what you want to it).
- gpderetta 4y agoIn c++ close by value/reference is under programmer control and there is no default