User loginNavigation |
Abstract Interface Types in GNAT: Conversions, Discriminants, and C++Abstract Interface Types in GNAT: Conversions, Discriminants, and C++. Javier Miranda and Edmond Schonberg.
The addition of interface types, of the type found in Java, to Ada2005 presented compiler writers with an implementation challenge. This is a third paper in a series describing the implementation of interfaces in the GNAT Ada compiler (an earlier paper dealt with synchronized interfaces, an interesting special case). The present paper deals mainly with issues caused by interface type conversions, and the related data layout issues. Of special interest is section 6 which shows how to write a C++/Ada multi-language program, in which method calls can be dispatched across language boundaries. Handling the multiple inheritance in the C++ code in this example is possible because the base classes have only pure virtual functions. By Ehud Lamm at 2007-04-14 15:52 | Cross language runtimes | Implementation | OOP | other blogs | 8159 reads
|
Browse archivesActive forum topics |
Recent comments
1 week 20 hours ago
1 week 4 days ago
6 weeks 5 days ago
6 weeks 6 days ago
18 weeks 6 days ago
19 weeks 12 hours ago
19 weeks 1 day ago
19 weeks 1 day ago
19 weeks 6 days ago
19 weeks 6 days ago