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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel