Home | Mirror | Search

2. helloworld

$ cat hello.d
import std.stdio;
void main() {
  writeln("Hello, world!");
}
		
$ chmod u+x hello.d
$ ./hello.d
Hello, world!
		
$ dmd hello.d
$ ./hello
Hello, world!
		
$ scp hello root@172.16.0.3:/tmp

# cd /tmp/
# ./hello
Hello, world!
		
comments powered by Disqus