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

Re: Vtables: what do we know so far?

Thread Previous | Thread Next
From:
Edwin Steiner
Date:
February 2, 2001 03:54
Subject:
Re: Vtables: what do we know so far?
Message ID:
3A7AA017.F09B72D2@net4you.co.at
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.

-Edwin

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About