--- import core.stdc.stdio;
extern(C) int main(int argc, char** argv) { printf("hello world, %s\n", argc > 1 ? argv[1] : "user"); return 0; } --- that should work with any compiler, with or without -betterC.
Adam D. Ruppe via Digitalmars-d-learn Fri, 09 Mar 2018 18:36:07 -0800
--- import core.stdc.stdio;
extern(C) int main(int argc, char** argv) { printf("hello world, %s\n", argc > 1 ? argv[1] : "user"); return 0; } --- that should work with any compiler, with or without -betterC.