March 24, 2015
On 3/24/15 7:48 AM, Szymon Gatner wrote:
> On Tuesday, 24 March 2015 at 00:26:13 UTC, Daniel Murphy wrote:
>> "Szymon Gatner"  wrote in message
>> news:oofoormyfxkefokvkuzz@forum.dlang.org...
>>
>>> i really try not to be whiny about it but it is sooo frustrating. d
>>> advertises itself as easy to integrate with c/c++ and maybe in theory
>>> it is but in practice it is not true at all. simplest example from
>>> Adam's book I followed crashed miserable so I can only assume that
>>> -nobody- is mixing c++ with d on Win.
>>
>> DDMD is mixing D and C++ on all the autotester platforms.  It's not
>> that simple, but it should be possible.
>
> Honestly, I am not willing to try even less mature compiler (last month
> it was finished?) to try the feature that does not work in the reference
> one.
>
> Don't get me wrong, we do want to be early adopters, but there is
> nothing to adopt yet.

I think you misunderstand. Daniel is citing DDMD project as an example of C++ and D working together. The output from DDMD should be identical to DMD, so it's not anything "new" on that side.

-Steve
March 24, 2015
On Tuesday, 24 March 2015 at 11:48:48 UTC, Szymon Gatner wrote:
> On Tuesday, 24 March 2015 at 00:26:13 UTC, Daniel Murphy wrote:
>> "Szymon Gatner"  wrote in message news:oofoormyfxkefokvkuzz@forum.dlang.org...
>>
>>> i really try not to be whiny about it but it is sooo frustrating. d advertises itself as easy to integrate with c/c++ and maybe in theory it is but in practice it is not true at all. simplest example from Adam's book I followed crashed miserable so I can only assume that -nobody- is mixing c++ with d on Win.
>>
>> DDMD is mixing D and C++ on all the autotester platforms.  It's not that simple, but it should be possible.
>
> Honestly, I am not willing to try even less mature compiler (last month it was finished?) to try the feature that does not work in the reference one.
>
> Don't get me wrong, we do want to be early adopters, but there is nothing to adopt yet.

So, Adam's book worked pretty well for me. What specific issues
are you having?

I remember asking StackOverflow about one particular issue I was
having getting functions to work with SAS, and Adam responded in
half an hour. Before that though, I already had the answer to the
question. Perhaps the question might help you:
http://stackoverflow.com/questions/25868600/could-a-d-dll-work-within-sas
March 24, 2015
On Tuesday, 24 March 2015 at 11:52:51 UTC, Steven Schveighoffer wrote:
> On 3/24/15 7:48 AM, Szymon Gatner wrote:
>> On Tuesday, 24 March 2015 at 00:26:13 UTC, Daniel Murphy wrote:
>>> "Szymon Gatner"  wrote in message
>>> news:oofoormyfxkefokvkuzz@forum.dlang.org...
>>>
>>>> i really try not to be whiny about it but it is sooo frustrating. d
>>>> advertises itself as easy to integrate with c/c++ and maybe in theory
>>>> it is but in practice it is not true at all. simplest example from
>>>> Adam's book I followed crashed miserable so I can only assume that
>>>> -nobody- is mixing c++ with d on Win.
>>>
>>> DDMD is mixing D and C++ on all the autotester platforms.  It's not
>>> that simple, but it should be possible.
>>
>> Honestly, I am not willing to try even less mature compiler (last month
>> it was finished?) to try the feature that does not work in the reference
>> one.
>>
>> Don't get me wrong, we do want to be early adopters, but there is
>> nothing to adopt yet.
>
> I think you misunderstand. Daniel is citing DDMD project as an example of C++ and D working together. The output from DDMD should be identical to DMD, so it's not anything "new" on that side.
>
> -Steve

Ah, OK. Well, I will try mixing again after 2.067 is released and report back. From the changelog I don't understand what improvements have been made to D to increase C++ interop but that is not so important to us now.

Btw, who is responsible for D output for SWIG?
March 24, 2015
On Tuesday, 24 March 2015 at 11:56:30 UTC, csmith1991 wrote:
> On Tuesday, 24 March 2015 at 11:48:48 UTC, Szymon Gatner wrote:
>> On Tuesday, 24 March 2015 at 00:26:13 UTC, Daniel Murphy wrote:
>>> "Szymon Gatner"  wrote in message news:oofoormyfxkefokvkuzz@forum.dlang.org...
>>>
>>>> i really try not to be whiny about it but it is sooo frustrating. d advertises itself as easy to integrate with c/c++ and maybe in theory it is but in practice it is not true at all. simplest example from Adam's book I followed crashed miserable so I can only assume that -nobody- is mixing c++ with d on Win.
>>>
>>> DDMD is mixing D and C++ on all the autotester platforms.  It's not that simple, but it should be possible.
>>
>> Honestly, I am not willing to try even less mature compiler (last month it was finished?) to try the feature that does not work in the reference one.
>>
>> Don't get me wrong, we do want to be early adopters, but there is nothing to adopt yet.
>
> So, Adam's book worked pretty well for me. What specific issues
> are you having?
>
> I remember asking StackOverflow about one particular issue I was
> having getting functions to work with SAS, and Adam responded in
> half an hour. Before that though, I already had the answer to the
> question. Perhaps the question might help you:
> http://stackoverflow.com/questions/25868600/could-a-d-dll-work-within-sas

D's stdio is not properly initialized when using in C/C++ app causing a crash on writeln() call. I posted a link to the thread I originally posted about the issue. Bug in Phobos it seems
March 24, 2015
On 03/24/2015 12:59 PM, Szymon Gatner wrote:
> From the changelog I don't understand what improvements have been made to D to increase C++ interop but that is not so important to us now.

Yes, that's really lame. We need to convince Daniel to write changelog
entries.
There is another nice fix that isn't mentioned yet
(https://github.com/D-Programming-Language/dmd/pull/3855).
March 24, 2015
On Tuesday, 24 March 2015 at 17:09:44 UTC, Martin Nowak wrote:
> On 03/24/2015 12:59 PM, Szymon Gatner wrote:
>> From the changelog I don't understand what improvements have been made
>> to D to increase C++ interop but that is not so important to us now.
>
> Yes, that's really lame. We need to convince Daniel to write changelog
> entries.
> There is another nice fix that isn't mentioned yet
> (https://github.com/D-Programming-Language/dmd/pull/3855).

Nice fix indeed. Thanks for the info!
March 24, 2015
On Tuesday, 24 March 2015 at 11:59:19 UTC, Szymon Gatner wrote:
> On Tuesday, 24 March 2015 at 11:52:51 UTC, Steven Schveighoffer wrote:
>> On 3/24/15 7:48 AM, Szymon Gatner wrote:
>>> On Tuesday, 24 March 2015 at 00:26:13 UTC, Daniel Murphy wrote:
>>>> "Szymon Gatner"  wrote in message
>>>> news:oofoormyfxkefokvkuzz@forum.dlang.org...
>>>>
>>>>> i really try not to be whiny about it but it is sooo frustrating. d
>>>>> advertises itself as easy to integrate with c/c++ and maybe in theory
>>>>> it is but in practice it is not true at all. simplest example from
>>>>> Adam's book I followed crashed miserable so I can only assume that
>>>>> -nobody- is mixing c++ with d on Win.
>>>>
>>>> DDMD is mixing D and C++ on all the autotester platforms.  It's not
>>>> that simple, but it should be possible.
>>>
>>> Honestly, I am not willing to try even less mature compiler (last month
>>> it was finished?) to try the feature that does not work in the reference
>>> one.
>>>
>>> Don't get me wrong, we do want to be early adopters, but there is
>>> nothing to adopt yet.
>>
>> I think you misunderstand. Daniel is citing DDMD project as an example of C++ and D working together. The output from DDMD should be identical to DMD, so it's not anything "new" on that side.
>>
>> -Steve
>
> Ah, OK. Well, I will try mixing again after 2.067 is released and report back. From the changelog I don't understand what improvements have been made to D to increase C++ interop but that is not so important to us now.
>
> Btw, who is responsible for D output for SWIG?

I tried with 2.067 and bug persists. Filled a bug report [1]

[1] https://issues.dlang.org/show_bug.cgi?id=14327
1 2 3 4 5
Next ›   Last »