Bind object to member function

Derek Parnell derek at psyc.ward
Sun Aug 13 15:04:21 PDT 2006


On Sun, 13 Aug 2006 20:32:25 +0000 (UTC), Li Jie wrote:

> 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?

I do not know what 'bind' means in this context. Is it a Java term? Why is
it needed?

-- 
Derek Parnell
Melbourne, Australia
"Down with mediocrity!"



More information about the Digitalmars-d-learn mailing list