Porting Overview
Difference (last change) (no other diffs, normal page display)
Added: 10a11
* Porting code from D v1 |
Porting to D from various other language can be easy, or it can be quite difficult. It all depends on the style and language features of the code you're trying to port.
The pages below are intended to provide an overview of the issues involved in porting idioms from different languages into D. If you are looking for differences from a language you use check out the page for learning D as a second language.
Porting
Porting refers to actually creating a line-by-line translation of an original body source code into D.
- Porting code from D v1
- Porting code from C to D
- Porting code from C++ to D
- Porting code from Java to D
Wrapping
Wrapping refers to leaving the original source code as-is, but writing one or more layers of interfacing functions on top of that to allow calling the non-D code from D.
Type Library Importer part of
Juno Class Library Project
- Creating D wrappers for C++ code
- H to D with sed
SWIG Interface Generator
Related
- Languages vs. D
D Transition Guide
Feature List
Rosetta Code: D category
- Language Specification
- Development with D