Difference between revisions of "Tutorials"
(Add link to Using NASM with D page) |
(→How To) |
||
Line 19: | Line 19: | ||
== How To == | == How To == | ||
* [[Compiling_and_linking_with_DMD_on_Windows|Compile and link with DMD on Windows]] | * [[Compiling_and_linking_with_DMD_on_Windows|Compile and link with DMD on Windows]] | ||
+ | * [[Convert header files with SED]] | ||
+ | * [[Create C bindings for D]] | ||
+ | * [[Defining custom print format specifiers|Define custom print format specifiers]] | ||
* [[Function literals]] | * [[Function literals]] | ||
+ | * [[Implicit conversions in user types|Implicitly convert a user-defined type to a builtin type]] | ||
+ | * [[Output locale character (MBS) to console]] | ||
* [[printf]] | * [[printf]] | ||
+ | * [[Promote D Projects]] | ||
* [[Regular expressions]] | * [[Regular expressions]] | ||
* [[Runtime type information (RTTI)]] | * [[Runtime type information (RTTI)]] | ||
− | |||
− | |||
− | |||
* [[Run D in a CGI (web) environment]] | * [[Run D in a CGI (web) environment]] | ||
− | |||
* [[Tame OPTLINK]] | * [[Tame OPTLINK]] | ||
* [[Unittest|Run unit tests]] | * [[Unittest|Run unit tests]] | ||
− | |||
* [[Using NASM with D]] | * [[Using NASM with D]] |
Revision as of 14:09, 17 May 2013
Best Practices
- Order of import statements
- Portability and performance
- Conventional module name for importing all modules in a package
Common Idioms
Although D inherited much of its syntax from C and C++, the new features that it introduces lead to some common idioms that are unique to D.
- Initializing variables
- Declaring constants
- Looping over integers
- Unittest placement
- Commenting out code
- Declaring dense multidimensional arrays
- Voldemort types
How To
- Compile and link with DMD on Windows
- Convert header files with SED
- Create C bindings for D
- Define custom print format specifiers
- Function literals
- Implicitly convert a user-defined type to a builtin type
- Output locale character (MBS) to console
- printf
- Promote D Projects
- Regular expressions
- Runtime type information (RTTI)
- Run D in a CGI (web) environment
- Tame OPTLINK
- Run unit tests
- Using NASM with D