virtual method pointer

Mehrdad wfunction at hotmail.com
Thu May 3 18:31:08 PDT 2012


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);
}


More information about the Digitalmars-d mailing list