On Wednesday, 9 March 2016 at 20:14:13 UTC, Adam D. Ruppe wrote:
On Wednesday, 9 March 2016 at 18:26:01 UTC, bigsandwich wrote:
[...]
You can easily do it yourself with a struct. That's all the c++
lambda is anyway, a bit of syntax sugar over a struct.
[...]
Right, I used to this sort of thing in C++ prior to C++11. I
think not having an RAII wrapper for lambdas similar to
std::function<> is an oversight for D, especially for people
averse to GC. That little bit of syntactic sugar makes a huge
difference.