Programming in D This book is also available Code samples as a .zip file Keyword index Chapters Foreword by Andrei Alexandrescu Preface The Hello World Program main writeln and write Compilation Fundamental Types char int double (and more) Assignment and Order of Evaluation = Variables Standard Input and Output Streams stdin stdout Reading from the Standard Input Logical Expressions bool true false ! == != < <= > >= || && if Statement if else while Loop while continue break Integers and Arithmetic Operations ++ -- + - * / % ^^ += -= *= /= %= ^^= Floating Point Types .nan .infinity isNaN Arrays [] .length ~ ~= Characters char wchar dchar Slices and Other Array Features .. $ .dup capacity Strings char[] wchar[] dchar[] string wstring dstring Redirecting Standard Input and Output Streams Files File auto and typeof auto typeof Name Scope for Loop for Ternary Operator ?: ?: Literals Formatted Output writef writefln Formatted Input do-while Loop do while Associative Arrays .keys .values .byKey .byValue .byKeyValue .get .remove in foreach Loop foreach .byKey .byValue .byKeyValue switch and case switch, case, default, final switch enum enum .min .max Functions return void Immutability enum const immutable .dup .idup Value Types and Reference Types & Function Parameters in out ref inout lazy scope shared Lvalues and Rvalues auto ref Lazy Operators Program Environment main stderr Exceptions throw try catch finally scope scope(exit) scope(success) scope(failure) assert and enforce assert enforce Unit Testing unittest Contract Programming in out Lifetimes and Fundamental Operations The null Value and the is Operator null is !is Type Conversions to assumeUnique cast Structs struct . {} static, static this, static ~this Variable Number of Parameters T[]... __MODULE__ __FILE__ __LINE__ __FUNCTION__ (and more) Function Overloading Member Functions toString const ref Parameters and const Member Functions const ref, in ref, inout Constructor and Other Special Functions this ~this thi...
First seen: 2025-04-25 20:57
Last seen: 2025-04-26 09:04