Abstract
In the previous Gem about generating bindings from C++ headers, we mentioned, without going into details, how to interface with C++ constructors in Ada using the CPP_Constructor pragma.
In this Gem we present some common uses of C++ constructors in mixed-language programs in GNAT, and in the next Gem, we will show the use of some powerful Ada 2005 features in conjunction with C++ constructors.
Index Terms
Gem #61: interfacing with C++ constructors
Recommendations
Gem #59: generating Ada bindings for C headers
One of the delicate areas of Ada that is often unfamiliar to developers is how to intermix Ada code with other programming languages. While Ada provides very powerful and complete capabilities to interface with other compiled languages such as C, C++, ...
Gem #62: C++ constructors and Ada 2005
In the previous Gem, we explored how to interface and make simple use of C++ constructors on the Ada side.
In this Gem, we detail more advanced constructs related to Ada 2005 and C++ constructors.
Gem #37: bounded buffer package in GNAT hierarchy (part 2)
Ada Gem #37 --- Part 1 of this Gem briefly introduced bounded buffers, protected types, and the declaration of the generic package GNAT. Bounded_Buffers, exporting protected type Bounded_Buffer. In Part 2 of the Gem we examine the private part of ...






Comments