CWrap - higher abstraction level for calling C functions

Jacob Carlborg doob at me.com
Tue Feb 21 09:40:20 PST 2012


On 2012-02-21 13:12, Gour wrote:
> On Mon, 20 Feb 2012 20:52:04 +0100
> Jacob Carlborg<doob at me.com>  wrote:
>
>> As I understand it, CWrap provides more than just bindings for a C
>> function.
>
> Right, but, afaik, SWIG can also make more than wrapper for a C function
> by using typemaps, %exception etc.
>
> Does it mean that dstep is only tool for wrapping C function for usage
> in D?
>
>> SWIG or dstep could output CWrap bindings.
>
> The former probably won't bother to do it, but wonder about the latter?

DStep is currently used only for automatically generating bindings for C 
functions and Objective-C classes and methods.

But it depends what code I output, I could change dstep to output code 
that uses CWrap.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list