On Fri, May 27, 2005 at 09:14:13PM +0900, Mike McCormack wrote:
The idea is to store the of the vtable into the object offset with each vtable, so that the object pointer can be calculated without having to known which interface we're being called from. The down side is that it uses a bit of casting...
We once proposed something like this for the various DirectX COM objects (basically, all the different versions of the same object) but got the patch refused and had to resort to thunks...
We will see if you will be more lucky than us :-)
Lionel