あれ・・・ない・・・
なんとなくD言語でも始めて見ようと思って、適当なテキストとか読んだりしてるんだけど、std.stdio.writeln()をつかったらgdcが
hoge.d:5: Error: undefined identifier module stdio.writeln hoge.d:5: Error: function expected before (), not module stdio.writeln of type void hoge.d:8: Error: undefined identifier module stdio.writeln hoge.d:8: Error: function expected before (), not module stdio.writeln of type void
とか言ってきた。orz
どうしてこうなった。とりあえずこうなったソース載せてみる。
import std.stdio; int main( string[] args ) { writeln( "hello, world" ); foreach ( str; args ) { writeln( str ); } return 0; }