Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Feature Overview
  - DMD Manual
  - Articles
- Packages
- Community
  - Bug Tracker
  - Forums
  - IRC
  - D on GitHub
  - Wiki
  - Review Queue
  - Twitter
  - More Links
- Resources
  - NEW Library Reference Preview
  - D-Specific Tools
  - Visual D
  - Editors
  - IDEs
  - Tutorials
  - Books
  - The D Style
  - Glossary
  - Acknowledgments
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# Features Overview

Navigate D's implementation of a few key programming language concepts.

- Garbage Collection
- Functions
  - Function Delegates
  - Function Overloading
  - out parameters for functions
  - Nested functions
  - Function literals
  - Closures
  - Typesafe variadic arguments
  - Lazy function argument evaluation
  - Compile time function evaluation
  - Uniform Function Call Syntax
  - User Defined Attributes
- Arrays
  - Lightweight arrays
  - Resizeable arrays
  - Built-in strings
  - Array slicing
  - Array bounds checking
  - Array literals
  - Associative arrays
  - String switches
  - Aliases
- OOP
  - Object Orientation
  - Interfaces
  - Single inheritance of implementation/multiple inheritance of interfaces
  - Operator overloading
  - Modules
  - No built-in dynamic class loading
  - Nested classes
  - Inner (adaptor) classes
  - Covariant return types
  - Properties
- Performance
  - Inline assembler
  - Direct access to hardware
  - Lightweight objects
  - Explicit memory allocation control
  - Independent of VM
  - Direct native code gen
- Generic Programming
  - Class Templates
  - Function Templates
  - Implicit Function Template Instantiation
  - Partial and Explicit Specialization
  - Value Template Parameters
  - Template Template Parameters
  - Variadic Template Parameters
  - Template Constraints
  - Mixins
  - static if
  - expressions
  - typeof
  - foreach
  - Implicit Type Inference
- Reliability
  - Contract Programming
  - Unit testing
  - Static construction order
  - Guaranteed initialization
  - RAII (automatic destructors)
  - Exception handling
  - Scope guards
  - try-catch-finally blocks
  - Thread synchronization primitives
- Compatibility
  - C-like syntax
  - Enumerated types
  - Support for all C types
  - 80 bit floating point
  - Complex and Imaginary
  - Direct access to C
  - Use existing debuggers
  - Struct member alignment control
  - Generates standard object files
  - Obviates need for a macro text preprocessor
- Other
  - Conditional compilation
  - Unicode source text
  - Documentation comments

Copyright © 1999-2016 by Digital Mars ®, All Rights Reserved | Page generated by Ddoc on Mon Jun 27 20:06:42 2016