[fpc-devel] Linking to C++

Sebastian Kaliszewski Sebastian.Kaliszewski at softax.com.pl
Tue Jan 23 14:18:12 CET 2007


To clarify a bit...

Peter Popov wrote:
> A 
> C++ class CANNOT have a  virtual destructor (the VMT is killed when you 
> call delete, before the  class' destructor is called).


Nope. Virtual destructors exist in C++, moreover good practice is to make 
destructor virtual if any other method is virtual. The problem is that there 
could be non virtual ones as well.

> In fact, C++ 
> classes need not have a VMT at  all.

exactly


rgds
\SK



More information about the fpc-devel mailing list