Edwin Steiner <[EMAIL PROTECTED]> writes:
>Filipe Brandenburger wrote:
>[...]
>>     struct sv {
>>         vtable_sv  * ptr_to_vtable;
>>         void       * ptr_to_data;
>>         void       * gc_data;
>>     };
>[...]
>> I don't think I can get further from here. Note that, in all examples,
>> I didn't write the `this' pointer that every function would receive.
>> This would correspond to the `ptr_to_data' from the struct sv.
>
>I think the `this' pointer should be the SV* (== &ptr_to_vtable) so virtual functions 
>can themselves call virtual functions on the same object.

Definitely. It also allows them to change what ptr_to_data is for example.

>
>-Edwin
-- 
Nick Ing-Simmons

Reply via email to