Chapter 4. Integration

In this chapter, we will look at how to integrate D with other environments and programming languages. We'll learn about the following:

  • Calling the Windows API functions
  • Removing the Windows console
  • Making Linux system calls
  • Writing part of a C program in D
  • Interfacing with C++
  • Using structs to mimic the C++ object structure
  • Communicating with external processes
  • Communicating with a dynamic scripting language
  • Using Windows' COM

Introduction

D has direct access to functions that use the C, Windows, or C++ conventions as well as the C++ interfaces and low-level control over memory layouts. D also has syntax sugar that can make accessing dynamic interfaces easy and beautiful. This allows a high degree of interoperability with almost any environment. Generally, if you can integrate something with a C program, you can also integrate it with D.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.96.86