| ▲ | fuzztester 6 hours ago | |
Can you explain what BetterC is, and what it is used for? 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 5 hours ago | parent [-] | |
https://dlang.org/spec/betterc.html 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. | ||