Pointers to methods

nazriel spam at dzfl.pl
Sun Mar 3 19:37:46 PST 2013


On Monday, 4 March 2013 at 03:28:30 UTC, bearophile wrote:
> nazriel:
>
>> While playing with D code (http://dpaste.dzfl.pl/c6d9e5bd) I 
>> noticed that I have no idea how to write equivalent to this 
>> C++ code:
>
> I think the answer to this so common question should go here 
> (unless already present):
> http://dlang.org/faq.html
>

If that question was asked before then I am very sorry.
Documentation doesn't mention this particular case.
All it mentions are delegates:

A a = new A();
auto fp = &a.func; // <- Not what I am asking about.

Also if you know the answer please, feel free to tell me.
It would speed up work with stuff I have to do hehe

> Bye,
> bearophile



More information about the Digitalmars-d-learn mailing list