Home

"puzzlecracker" <ironsel2000@gmail.com> wrote in message
news:1189988476.241266.17880@22g2000hsm.googlegroups.com...
>I am kind of confused with the vpointer. Assuming the class has a
> virtual function. Would ONE pointer (occupying 16 bits) to virtual
> table be create for the class or One for each object? How does this
> pointer fit into aligment properties of an object (of the class) or
> class itself?

You can take a look at the following code for an example minimalist
implementation of vtables in C:

http://groups.google.com/group/comp.lang.c/browse_frm/thread /1b106926ba5db19f

This shows the internals of a very-basic abstract interface technique for C.
It might help you understand the that a possible C++ implementation might
use one per-object pointer to a single per-class static/constant vtable...

previous
next

Tuned cars
pywin32/win32com float/double coercion
Re: Global package variable, is it possible?
What does this mean?
Re: Noob: What is a slot? Me trying to understand another's code
katalog stron
forum
Mariquita
Spiewaj-glosno Ulma Biz
sitodruk