3 ms·
In terms of C integration, Objective-C wins, giving C priority even over it's own syntax :) D has pretty nice integration - you can convert (reasonably non-hac
by pornel 16y ago
In terms of C integration, Objective-C wins, giving C priority even over it's own syntax :)
D has pretty nice integration - you can convert (reasonably non-hacky) C headers to D headers and use C functions and types almost as if they were D native.
Explicit type casts, even for most basic types like ulong and void* stuck me as very inelegant.
For known prototypes, it should be possible to do it much cleaner. There are various Objective-C bridges (e.g. PyObjC) which are able to seamlessly convert known C types and ObjC classes to equivalents in high(er)-level languages.