定番。
import std.c.stdio;
int main(char[][] arg){
printf("Hello, World.\n");
}
コンパイル。
C:\>dmd hello.d
C:\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi;
C:\>hello
Hello, World.
Error: AssertError Failure hello.d(5)
エラーだ。
「return 0;」を追加したら直った。Rubyの触りすぎでreturnなんてすっかり忘れてた。
省略できないのか…