Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I make dispatching and nondispatching calls to virtual functions?

dispatching functions virtual
0
10 Posted

Can I make dispatching and nondispatching calls to virtual functions?

0
10

Yes. An Ada package, refered to as a class package, is generated for each C++ class. A class package interfaces to the visible, that is non-private, member functions of the class. A nondispatching function interfaces directly to the C++ member function. A virtual function is implemented in Ada as a dispatching call through the VFT to the proper member function. For classes with non-pure virtual functions a nondispatching package is also generated. The nondispatching package interfaces to the visible, that is non-private, virtual function members specific to the class thereby providing nondispatching calls to those member functions.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123