D vs Java as a first programming language
Anders F Björklund
afb at algonet.se
Sun Sep 28 23:19:08 PDT 2008
Simen Kjaeraas wrote:
> Actually, you can make hello world even simpler:
>
> void main()
> {
> printf("Hello World!");
> }
You seem to be missing an import std.c.stdio; there...
Can't count on Object being buggy* like that forever ? ;-)
Or you could use an alternative declaration, like:
version(Tango) extern (C) int printf(char *, ...);
--anders
* http://www.digitalmars.com/d/archives/digitalmars/D/bugs/5838.html
More information about the Digitalmars-d
mailing list