Pointers to non-static member functions!
Trass3r
un at known.com
Wed Jun 8 04:32:45 PDT 2011
Am 08.06.2011, 10:00 Uhr, schrieb Daniel Murphy <yebblies at nospamgmail.com>:
> Currently, this compiles:
>
> class A
> {
> void func() {}
> }
>
> void main()
> {
> auto p = &A.func;
> }
>
> In this case, typeof(p) is void function().
...
> Does anybody think changing &ClassType.nonStaticMember to return void*
> would be a bad idea?
??
Shouldn't this just return a delegate?
More information about the Digitalmars-d
mailing list