C++ interop - what to do about long and unsigned long?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 11 12:01:49 PDT 2014


On 9/11/14, 8:39 AM, Sean Kelly wrote:
> On Thursday, 11 September 2014 at 00:29:37 UTC, Andrei Alexandrescu wrote:
>> On 9/10/14, 4:16 PM, bachmeier wrote:
>>
>>> Clearly Walter and everyone should work on whatever they think is
>>> important. I hope your statement doesn't imply that all development
>>> effort is going to be put into C++ compatibility.
>>
>> Ideally it would.
>
> Is C++ interop really that important or is it another one of those "if D
> had this, *then* I would use it!" dismissals.

It is that important.

> C interop is clearly
> crucial.  Operating system interfaces are written in C, and not being
> able to call C functions is hugely limiting.  But C++?  I honestly can't
> envision a situation where I would actually care about C++ interop.  Is
> this truly a blocker for some people?  Like an actual, honest blocker
> and not just a false flag?

Blocker. No two ways about it.

We've done some stuff at FB going with the "ah we have C interface so 
we'll just write C wrappers around the C++ code we'll use" and it didn't 
take long to figure that won't scale, like, at all.


Andrei



More information about the Digitalmars-d mailing list