Why is the identifier "printf" known by the frontend?

Wolfgang Draxinger wdraxinger at darkstargames.de
Thu Oct 26 03:00:34 PDT 2006


Until now I always imported std.stdio to get printf, but today I
compiled a program where I forgot that, so fwrite, fread and the
other std.c.stdio functions were missing. But not printf;
obviously it is made avaliable by the compiler, which I don't
understand, since eventually you don't want to use printf in
your programs (for whatever reason) or want to implement a
alternative.

What is the reason for that? "import std.stdio" is not a real
difficult thing to type.

Wolfgang Draxinger
-- 
E-Mail address works, Jabber: hexarith at jabber.org, ICQ: 134682867
GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E



More information about the Digitalmars-d mailing list