Review of the D 2 Programming Language

Familiarity with C is assumed.

First Program

import std.stdio;

int main() {
	writefln("Hello world");
	return 0;
}

High-Level Feature List

High-Level "Cultural" Problems

Implementation Problems

Tips

  • Block commenting is possible using version (none) { ... } .
  • Types

    Character

    wchar currencySymbol = '\€';
    wchar Ğ_w = '\u011e';
    dchar Ğ_d = '\U0000011e';
    

    Void

    Integers

    Floating-Point

    String

    Others

    System Library Bindings