Article: We're Overlooking A Key Part of C/C++ to D User Migration

Dicebot via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Feb 3 09:25:55 PST 2016


On 02/03/2016 07:05 PM, Nick Sabalausky wrote:
> Something that's been on my mind for a few months, finally got around to
> a little write-up about it.
> 
> We're Overlooking A Key Part of C/C++ to D User Migration:
> 
> https://semitwist.com/articles/article/view/we-re-overlooking-a-key-part-of-c-c-d-user-migration

For plain ABI interop it is actually something that should be doable by
compiler as part of .di header generation - generate matching
`extern(C)` wrappers for non-templated code (expanding all arrays to ptr
+ len pairs etc.).

The problem is how you are going to expose templated stuff which
dominates most useful D libraries.


More information about the Digitalmars-d-announce mailing list