develooper Front page | perl.perl6.internals | Postings from February 2001

Re: Vtables: what do we know so far?

Thread Previous | Thread Next
Edwin Steiner
February 2, 2001 03:54
Re: Vtables: what do we know so far?
Message ID:
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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About