D Documentation  
Hello world!
Now we're going to extend the program. Open the "test.d" again and edit it to:
import std.stdio;

int main(char[][] args)
{
  writef("Hello world!");
  return 0;
}


"import" tells the compiler that you are using another module from the standard library. The "std.stdio" module contains some really useful functions for input and ouput in your program.
One of these functions is the writef function that is called in your main. It takes a string as an argument here: The string is "Hello world!". The function will print that string to the console.

Compile and execute the program with test.bat and run-test.bat. The output should be:
Hello world!
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.