Language subset for printing
Adam D. Ruppe
destructionator at gmail.com
Fri Dec 20 17:18:35 PST 2013
On Saturday, 21 December 2013 at 01:09:31 UTC, Casper Færgemand
wrote:
> How big of a subset of D would a compiler need to use writeln?
writeln is pretty complex and using it pulls in a lot of Phobos
too.
> Is there possibly an easier way to write to stdout? Calling
> printf in some C code perhaps?
Just call printf in D!
import core.stdc.stdio;
void main() {
printf("hello world!\n");
}
More information about the Digitalmars-d-learn
mailing list