Pointers to methods

nazriel spam at dzfl.pl
Sun Mar 3 19:41:21 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
>

Oh, I also tried all variations of

(obj.*fpp)()
(obj).*fpp()
(obj).(*fpp)()
obj.*fpp()

Of course everything fails, either with parsing errors or 
resolution errors

> Bye,
> bearophile



More information about the Digitalmars-d-learn mailing list