On Friday, 25 August 2017 at 08:31:57 UTC, Jacob Carlborg wrote:
On 2017-08-25 02:43, Walter Bright wrote:
I have no idea how that would even work. Since lambdas are
nested functions, how would one write one in D and have it
nested inside C++ code?
I thought C++ lambdas were implemented as structs with the call
operator overloaded.
Correct, the lambda syntax is just syntatic sugar. But how would
D support that? The name of the compiler-generated struct is
known only to the compiler, there'd be no way to link to the code.
Atila