The CAPI Manifesto

so so at so.so
Fri Oct 21 00:48:33 PDT 2011


On Thu, 20 Oct 2011 00:26:58 +0300, Nick Sabalausky <a at a.a> wrote:

> "so" <so at so.so> wrote in message
> news:op.v3ivsvb8mpw3zg at localhost.localdomain...
>> On Tue, 18 Oct 2011 03:32:17 +0300, Jonathan M Davis  
>> <jmdavisProg at gmx.com>
>> wrote:
>>
>>> Translating C header
>>> files to D is a pain and time consuming, and it would benefit us all to
>>> have a
>>> place to go to find common C headers translated to D so that such work
>>> doesn't
>>> have to be duplicated.
>>
>> With the second compiler, there won't be any need for us to do anything,
>> like C++ we could use C libraries seamlessly.
>
> The only reason C++ is able to do that is because C++ (realistically,  
> even
> if not *technically*) is a proper superset of C. D isn't.

Right, but more importantly it is ABI compatible which is what D also has,  
this opens some doors.
For most C libraries if you exclude macros, you just fill structs, and  
call functions.


More information about the Digitalmars-d mailing list