Bind object to member function

Li Jie cpunion at gmail.com
Sun Aug 13 13:32:25 PDT 2006


class Test{
  void a(int n){}
}

auto a = &Test.a;
auto t = new Test;
a(t, 1); // or: a.bind(t); a(1);

Is this supported?



More information about the Digitalmars-d-learn mailing list