封面
版权页
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
Summary
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
Summary
Chapter 4. Running Code at Compile Time
Pragmas
Conditional compilation
Compile-time strings
Compile-time function execution
Odds and ends
Summary
Chapter 5. Generic Programming Made Easy
Template basics
Beyond the basics
Operator overloading
MovieMan – the database
Summary
Chapter 6. Understanding Ranges
Ranges defined
Ranges in use
Summary
Chapter 7. Composing Functional Pipelines with Algorithms and Ranges
Functional programming and composable pipelines
Navigating Phobos
MovieMan – wrapping up
Summary
Chapter 8. Exploring the Wide World of D
Online resources
Editors and IDEs
Tools and utilities
Libraries
Summary
Chapter 9. Connecting D with C
Preliminaries
Binding D to C
Calling C from D
Calling D from C
Summary
Chapter 10. Taking D Online
The software
MovieManWeb
Summary
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
Summary
Index
更新时间:2021-07-30 10:14:07