(no title)
fuzztester | 17 days ago
I think there's also something called ImportC. Not sure what that is either.
I read the D blog sometimes, and have written some programs in D, but am not quite clear about these two terms.
fuzztester | 17 days ago
I think there's also something called ImportC. Not sure what that is either.
I read the D blog sometimes, and have written some programs in D, but am not quite clear about these two terms.
jibal|17 days ago
https://dlang.org/spec/importc.html
> Note: ImportC and BetterC are very different. ImportC is an actual C compiler. BetterC is a subset of D that relies only on the existence of the C Standard library. BetterC code can be linked with ImportC code, too.
D contains an actual C compiler because Walter Bright wrote one long ago and then incorporated it into D.
Zig also contains an actual C compiler, based on clang, and has a @cImport directive.
fuzztester|17 days ago