[Python-Dev] flextype.c -- extended type system

Martin v. Loewis martin@v.loewis.de
16 Sep 2002 17:50:46 +0200


Christian Tismer <tismer@tismer.com> writes:

> > Christian's additions (as far as I understand them :-) are mostly
> > intended for very esoteric situations.
> 
> My additions support a subset of C++ virtual methods.
> How is that esoteric?

Why would an extension writer ever want to do this? "Normal" extension
types either wrap some C type, so you don't have inheritance at all,
or some C++ type, in which case a single type method can wrap
arbitrary virtual methods (since the VMT is done in C++).

A real-world example would help.

Regards,
Martin