virtual method pointer
Gor Gyolchanyan
gor.f.gyolchanyan at gmail.com
Fri May 4 00:22:28 PDT 2012
Cool! Thanks!
So all I need to do is remember the indices of functions in the vtable
and extract them manually every time like this, right?
On Fri, May 4, 2012 at 5:31 AM, Mehrdad <wfunction at hotmail.com> wrote:
> class Foo
> {
> void test() { }
> }
>
> void main(string[] args)
> {
> auto f = new Foo();
> stderr.writeln(f.__vptr[6]);
> auto del = (&f.test);
> stderr.writeln(del.funcptr);
> }
--
Bye,
Gor Gyolchanyan.
More information about the Digitalmars-d
mailing list