[Solved] Re: Is importC ready?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Thu Nov 18 10:55:12 UTC 2021
On Thursday, 18 November 2021 at 04:38:36 UTC, bachmeier wrote:
> extensions. I honestly have no idea why they pretend C is
> standardized.
The baseline is standardized, but in C there is a long tradition
for writing code for specific system targets and compilers. So,
by convention you try to keep system specific and compiler
specific stuff in a small set of files and macros. Then you can
port to another system/compiler by rewriting that small set of
files and macros.
System level codebases are generally not portable, only
"portable", which is what makes it system level. :-)
Why is this acceptable? Well, adapting to a new C compiler is
less work than adapting the system specific parts to a new
system, so it does not matter much.
More information about the Digitalmars-d
mailing list