2 ms·
If you use D as Better C, it does not require anything other than the existence of the C standard library. Here's "hello world" in DasBetterC: import core.
by WalterBright 6y ago
If you use D as Better C, it does not require anything other than the existence of the C standard library. Here's "hello world" in DasBetterC:
import core.stdc.stdio;
int main() {
printf("hello world!\n");
return 0;
}
and yes, it is calling C's printf. To build it:
dmd -betterC hello.d