Add ImportC compiler to dmd

IGotD- nise at nise.com
Tue May 11 18:46:26 UTC 2021


On Tuesday, 11 May 2021 at 18:37:22 UTC, 12345swordy wrote:
>
> Read the change log, there are no plans for importing C++ 
> files. C (without the preprocessor nonsense) is a very simple 
> programming language. There are huge number of C libraries out 
> there. The ability to simply import them and "Just work" will 
> be a huge boost to adoption rate when it comes the d language.
>
> -Alex

Without the preprocessor many header files will not work. C is 
general littered with #ifdef. Commonplace is the #ifdef 
__cplusplus and without the preprocessor the C++ will collide 
with the C part.

The importC that will "just work", will not be the reality. It's 
not worth it in my opinion.


More information about the Digitalmars-d mailing list