Member function pointers

Manu turkeyman at gmail.com
Mon Jun 10 09:34:37 PDT 2013


On 11 June 2013 02:26, Jacob Carlborg <doob at me.com> wrote:

> On 2013-06-10 17:40, David Nadlinger wrote:
>
>  Let me try to summarize it in code:
>>
>> ---
>> class A { void foo(); }
>> auto memberFun = (&A.foo).funcptr;
>>
>> auto a = new A;
>> memberFun(a);
>> ---
>>
>
> Why is this better than a delegate?


It's not 'better', it's different.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130611/91b87fd1/attachment.html>


More information about the Digitalmars-d mailing list