Should importC fail on invalid C code?

Dennis dkorpel at gmail.com
Fri Jan 13 13:16:41 UTC 2023


On Friday, 13 January 2023 at 12:50:44 UTC, kdevel wrote:
> Should importC fail on invalid C code?

In general, no. The purpose is to build / interface with existing 
C code, not to develop new C code with it. ImportC also has its 
own extensions by borrowing D features such as __import, CTFE, 
and forward references. A strict C compiler would reject those.


More information about the Digitalmars-d-learn mailing list