5 ms·
with import C what is the benefit of creating bindings to C libraries if you can just work with the C code directly?
by Decabytes 4y ago
with import C what is the benefit of creating bindings to C libraries if you can just work with the C code directly?
- WalterBright 4y agoImportC can handle the .h files and/or the .c files, as the user prefers.
- schveiguy 4y agoimport C is not perfect. There are pieces of C that don't map directly to D. Such as #define constants and macros. That being said, it will make writing bindings a LOT easier, even though D already has direct binding to C functions.