Why using wrappers for D?

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 3 07:30:40 PDT 2016


On Monday, 3 October 2016 at 12:08:54 UTC, Chalix wrote:
> Hi All!
>
> The documentation of D 
> (https://dlang.org/overview.html#compatibility) says:
>
> "Direct Access to C API's
>
> Not only does D have data types that correspond to C types, it 
> provides direct access to C functions. There is no need to 
> write wrapper functions, parameter swizzlers, nor code to copy 
> aggregate members one by one."

D was inspired by Java, so wrappers meant here are probably JNI 
wrappers https://en.wikipedia.org/wiki/Java_Native_Interface


More information about the Digitalmars-d-learn mailing list