A use-case for ImportC?

WebFreak001 d.forum at webfreak.org
Tue Jun 8 06:56:40 UTC 2021


assuming you are writing a program in C - would the ImportC 
feature enable you to write headers in C (like in your existing 
codebase) and then import them for implementation in D?

This would very neatly allow using D in C projects without 
duplicating the struct types, typedef, etc. in both C and D files.


More information about the Digitalmars-d mailing list