5 Mar
2004
5 Mar
'04
17:58
Cincai Patron wrote:
On 05 March 2004 pm 17:00, John Lamb wrote:
Just want to add that in C++, pointer to a non-static member function has the "this" hidden parameter.
I don't think I understood that one. :-/
What I mean is, to have a pointer to a member function, we must include the object as the first parameter.
Good point. It's worthwhile emphasising that you cannot use a pointer to a member without an object (though you can declare one). I learned this one the hard way. I confused myself thinking about the equivalence of x and this->x. :-) -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.