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
        • Re: HTOD Jacob Carlborg via Digitalmars-d
          • Re: HTOD 12345swordy via Digitalmars-d
            • Re: HTOD Jacob Carlborg via Digitalmars-d
            • Re: HTOD Walter Bright via Digitalmars-d
            • Re: HTOD Biotronic via Digitalmars-d
            • Re: HTOD Jacob Carlborg via Digitalmars-d
            • Re: HTOD Atila Neves via Digitalmars-d
            • Re: HTOD Jacob Carlborg via Digitalmars-d
            • Re: HTOD Walter Bright via Digitalmars-d
            • Re: HTOD Jacob Carlborg via Digitalmars-d
            • Re: HTOD 12345swordy via Digitalmars-d
            • Re: HTOD Jacob Carlborg via Digitalmars-d
            • Re: HTOD 12345swordy via Digitalmars-d
            • Re: HTOD Jacob Carlborg via Digitalmars-d
  • Re: HTOD Jonathan Shamir via Digitalmars-d
  • Re: HTOD Steven Schveighoffer via Digitalmars-d
    • Re: HTOD Walter Bright via Digitalmars-d

Reply via email to