HTOD
Atila Neves via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 25 04:07:53 PDT 2017
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
More information about the Digitalmars-d
mailing list