August 25, 2017
On 2017-08-25 13:07, Atila Neves wrote:

> 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.

I don't know. I haven't suggested this should be implemented.

-- 
/Jacob Carlborg
August 25, 2017
On 8/25/2017 1:31 AM, 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.

Right, but please show me an example of how that might be used.

August 26, 2017
On Thursday, 24 August 2017 at 19:08:04 UTC, Jacob Carlborg wrote:
> On 2017-08-24 17:02, 12345swordy wrote:
>
>> They have plans to add c++ support?
>
> D can already link with C++, but not all features are supported. Like lambdas, for example, are not supported.

I am not asking that, I'm asking regarding the project mention earlier.
August 28, 2017
On 2017-08-25 16:58, Walter Bright wrote:

> Right, but please show me an example of how that might be used.

I've never suggested that this should be implemented.

-- 
/Jacob Carlborg
August 28, 2017
On 2017-08-26 23:32, 12345swordy wrote:

> I am not asking that, I'm asking regarding the project mention earlier.

Adding support for C++ to DStep is a long term goal, yes. But the compiler still needs to support those features. Unless DStep is going to generate C wrappers, which I would like to avoid.

-- 
/Jacob Carlborg
August 28, 2017
On Monday, 28 August 2017 at 06:30:53 UTC, Jacob Carlborg wrote:
> On 2017-08-26 23:32, 12345swordy wrote:
>
>> I am not asking that, I'm asking regarding the project mention earlier.
>
> Adding support for C++ to DStep is a long term goal, yes. But the compiler still needs to support those features. Unless DStep is going to generate C wrappers, which I would like to avoid.

What compiler are you referring to? Clang? LDC? DMD?

August 28, 2017
On 2017-08-28 20:24, 12345swordy wrote:

> What compiler are you referring to? Clang? LDC? DMD?

The D compilers, DMD and LDC.

-- 
/Jacob Carlborg
1 2 3 4 5
Next ›   Last »