D#
Installation#
Dをインストールする.
$ curl https://dlang.org/install.sh | bash -s
Activate#
DMDを起動する.
$ source ~/dlang/dmd-2.109.1/activate
Version#
$ dmd --version
DMD64 D Compiler v2.109.1
Copyright (C) 1999-2024 by The D Language Foundation, All Rights Reserved written by Walter Bright
Example#
hello.d:
import std.stdio;
void main() {
writeln("Hello, World!");
}
$ dmd hello.d -of=hello
$ ./hello
Hello, World!