rationale for function and delegate

Juanjo Alvarez fake at fakeemail.com
Sat Oct 16 10:08:07 PDT 2010


On Sat, 16 Oct 2010 11:57:36 -0400, "Steven Schveighoffer" 
<schveiguy at yahoo.com> wrote:
> auto dg = &obj.method;




> auto fptr = dg.funcptr;
> auto context = dg.ptr;




> Note, you cannot call fptr, you will get a runtime error.

Thanks, I'll play with it to see if I can make this work in my code.


More information about the Digitalmars-d mailing list