----- Original Message ----- From: Ruben Jvnsson To: Sent: Wednesday, December 11, 2002 7:18 AM Subject: Re: [EE]: function pointer syntax in C/C++ > Note that int C++ you can only get a pointer to a class member > function if it is declared as static (because of the this > pointer that otherwise also would be needed). Nope... pointers to non-static member functions are also supported (unless you use an old version of the M$ C++ compiler) e.g. class FOO { public: int xfunc(int, int); }; int (FOO::*func)(int, int); func = &FOO::xfunc; FOO some_foo, *foo_ptr; (some_foo.*xfunc)(1, 2); (foo_ptr->*xfunc)(1, 2); Regards Sergio Masci http://www.xcprod.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body