Note, that I have used bind. So, that the type of functions in the list_of_actions is the same, but we can connect it to different type of classes. So:

bind(&A::A_action, a)

This thing, produces a callable thing, of type void () as we declared the type of list_of actions earlier. Of course, you specify the instance you want to apply this member function on in the second parameter..

@Bach When learning any language, it's important not to try to carry over memes from other languages you know. C++ is really nothing like Python - I can't speak about Objective C. And note that you CAN do delegation in C++ - it's just not part of the language.
–
anonJun 13 '10 at 9:16

I agree Neil although i can't help it, as I know exactly what I want to do, and I look at how it's done in other languages I've worked with, so I naturally try to find the equivalent in C++. All part of discovering and learning I suppose. Will check out all the suggestions here. Stackoverflow has beaten any book I've read about any language, informative and full of professionals. thanks everyone.
–
BachJun 13 '10 at 10:16