formatting

This commit is contained in:
Johannes Loher 2018-06-07 23:18:28 +02:00
parent b488680c1c
commit 650f476d23

View file

@ -1,90 +1,89 @@
# Hands-On DLang # Hands-On DLang
* [Hands-On DLang](#hands-on-dlang) * [Setup](#setup)
* [Setup](#setup) * [Installing DMD and DUB](#installing-dmd-and-dub)
* [Installing DMD and DUB](#installing-dmd-and-dub) * [OS X](#os-x)
* [OS X](#os-x) * [Installing with Homebrew (recommended)](#installing-with-homebrew-recommended)
* [Installing with Homebrew (recommended)](#installing-with-homebrew-recommended) * [Installing locally using the install script](#installing-locally-using-the-install-script)
* [Installing locally using the install script](#installing-locally-using-the-install-script) * [Installing using the installer](#installing-using-the-installer)
* [Installing using the installer](#installing-using-the-installer) * [Windows](#windows)
* [Windows](#windows) * [Recommended editor setup](#recommended-editor-setup)
* [Recommended editor setup](#recommended-editor-setup) * [Installation of Visual Studio Code](#installation-of-visual-studio-code)
* [Installation of Visual Studio Code](#installation-of-visual-studio-code) * [Extension setup](#extension-setup)
* [Extension setup](#extension-setup) * [Project setup and compiling](#project-setup-and-compiling)
* [Project setup and compiling](#project-setup-and-compiling) * [Without DUB](#without-dub)
* [Without DUB](#without-dub) * [With DUB](#with-dub)
* [With DUB](#with-dub) * [Basics](#basics)
* [Basics](#basics) * [Hello World](#hello-world)
* [Hello World](#hello-world) * [Imports and modules](#imports-and-modules)
* [Imports and modules](#imports-and-modules) * [Selective imports](#selective-imports)
* [Selective imports](#selective-imports) * [Scoped imports](#scoped-imports)
* [Scoped imports](#scoped-imports) * [Imports match files and directories](#imports-match-files-and-directories)
* [Imports match files and directories](#imports-match-files-and-directories) * [Basic Types](#basic-types)
* [Basic Types](#basic-types) * [Type conversion](#type-conversion)
* [Type conversion](#type-conversion) * [Type properties](#type-properties)
* [Type properties](#type-properties) * [Indexing](#indexing)
* [Indexing](#indexing) * [Variable declarations](#variable-declarations)
* [Variable declarations](#variable-declarations) * [Mutability](#mutability)
* [Mutability](#mutability) * [`immutable`](#immutable)
* [`immutable`](#immutable) * [`const`](#const)
* [`const`](#const) * [Functions](#functions)
* [Functions](#functions) * [Return type deduction](#return-type-deduction)
* [Return type deduction](#return-type-deduction) * [Default arguments](#default-arguments)
* [Default arguments](#default-arguments) * [Local functions](#local-functions)
* [Local functions](#local-functions) * [Memory and pointers](#memory-and-pointers)
* [Memory and pointers](#memory-and-pointers) * [Memory safety](#memory-safety)
* [Memory safety](#memory-safety) * [Structs](#structs)
* [Structs](#structs) * [Member functions](#member-functions)
* [Member functions](#member-functions) * [`const` member functions](#const-member-functions)
* [`const` member functions](#const-member-functions) * [`static` member functions](#static-member-functions)
* [`static` member functions](#static-member-functions) * [Arrays](#arrays)
* [Arrays](#arrays) * [Static arrays](#static-arrays)
* [Static arrays](#static-arrays) * [Dynamic arrays](#dynamic-arrays)
* [Dynamic arrays](#dynamic-arrays) * [Array operations and properties](#array-operations-and-properties)
* [Array operations and properties](#array-operations-and-properties) * [Slices](#slices)
* [Slices](#slices) * [Alias and `string`s](#alias-and-strings)
* [Alias and `string`s](#alias-and-strings) * [Control flow](#control-flow)
* [Control flow](#control-flow) * [if…else](#ifelse)
* [if…else](#ifelse) * [switch…case](#switchcase)
* [switch…case](#switchcase) * [Old fashioned loops](#old-fashioned-loops)
* [Old fashioned loops](#old-fashioned-loops) * [Breaking out of outer loops](#breaking-out-of-outer-loops)
* [Breaking out of outer loops](#breaking-out-of-outer-loops) * [`foreach` loops](#foreach-loops)
* [`foreach` loops](#foreach-loops) * [Element iteration](#element-iteration)
* [Element iteration](#element-iteration) * [Access by reference](#access-by-reference)
* [Access by reference](#access-by-reference) * [Iterate `n` times](#iterate-n-times)
* [Iterate `n` times](#iterate-n-times) * [Iteration with index counter](#iteration-with-index-counter)
* [Iteration with index counter](#iteration-with-index-counter) * [Ranges](#ranges)
* [Ranges](#ranges) * [Laziness](#laziness)
* [Laziness](#laziness) * [Copying ranges](#copying-ranges)
* [Copying ranges](#copying-ranges) * [`RandomAccessRange`s](#randomaccessranges)
* [`RandomAccessRange`s](#randomaccessranges) * [Lazy range algorithms](#lazy-range-algorithms)
* [Lazy range algorithms](#lazy-range-algorithms) * [Associative arrays](#associative-arrays)
* [Associative arrays](#associative-arrays) * [Classes](#classes)
* [Classes](#classes) * [Inheritance](#inheritance)
* [Inheritance](#inheritance) * [Final and abstract member functions](#final-and-abstract-member-functions)
* [Final and abstract member functions](#final-and-abstract-member-functions) * [Checking for identity](#checking-for-identity)
* [Checking for identity](#checking-for-identity) * [Interfaces](#interfaces)
* [Interfaces](#interfaces) * [Templates](#templates)
* [Templates](#templates) * [Template functions](#template-functions)
* [Template functions](#template-functions) * [Other templates](#other-templates)
* [Other templates](#other-templates) * [Template value parameters](#template-value-parameters)
* [Template value parameters](#template-value-parameters) * [Other template parameters](#other-template-parameters)
* [Other template parameters](#other-template-parameters) * [Delegates](#delegates)
* [Delegates](#delegates) * [Functions as arguments](#functions-as-arguments)
* [Functions as arguments](#functions-as-arguments) * [Local functions with context](#local-functions-with-context)
* [Local functions with context](#local-functions-with-context) * [Anonymous functions and lambdas](#anonymous-functions-and-lambdas)
* [Anonymous functions and lambdas](#anonymous-functions-and-lambdas) * [Exceptions](#exceptions)
* [Exceptions](#exceptions) * [`nothrow`](#nothrow)
* [`nothrow`](#nothrow) * [Gems](#gems)
* [Gems](#gems) * [Uniform function call syntax (UFCS)](#uniform-function-call-syntax-ufcs)
* [Uniform function call syntax (UFCS)](#uniform-function-call-syntax-ufcs) * [Scope guards](#scope-guards)
* [Scope guards](#scope-guards) * [Range algorithms](#range-algorithms)
* [Range algorithms](#range-algorithms) * [Unittesting](#unittesting)
* [Unittesting](#unittesting) * [Example](#example)
* [Example](#example) * [Executing unittests](#executing-unittests)
* [Executing unittests](#executing-unittests) * [Code coverage](#code-coverage)
* [Code coverage](#code-coverage) * [String mixins](#string-mixins)
* [String mixins](#string-mixins)
## Setup ## Setup