更新时间:2021-07-30 10:14:07
封面
版权页
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. How to Get a D in Programming
Say hello to D
The Digital Mars D compiler
Say hello to MovieMan
DUB – the D build tool and package manager
Summary
Chapter 2. Building a Foundation with D Fundamentals
The very basics
Basic types
Basic operators
Derived data types
Control flow statements
Type qualifiers – const and immutable
Functions
MovieMan – first steps
Chapter 3. Programming Objects the D Way
User-defined types
Working with objects
Objects with const and immutable
Error handling
Contract programming and unit tests
MovieMan – adding menus
Chapter 4. Running Code at Compile Time
Pragmas
Conditional compilation
Compile-time strings
Compile-time function execution
Odds and ends
Chapter 5. Generic Programming Made Easy
Template basics
Beyond the basics
Operator overloading
MovieMan – the database
Chapter 6. Understanding Ranges
Ranges defined
Ranges in use
Chapter 7. Composing Functional Pipelines with Algorithms and Ranges
Functional programming and composable pipelines
Navigating Phobos
MovieMan – wrapping up
Chapter 8. Exploring the Wide World of D
Online resources
Editors and IDEs
Tools and utilities
Libraries
Chapter 9. Connecting D with C
Preliminaries
Binding D to C
Calling C from D
Calling D from C
Chapter 10. Taking D Online
The software
MovieManWeb
Chapter 11. Taking D to the Next Level
Concurrency
SafeD
Functional purity
The garbage collector
Connecting with C++
More on Phobos
Game development with D
The future of D
Index