7 months, 2 weeks ago.

What does "state" mean in the callback tutorial?


My guess is that it can be the address of a data item including the address of a class. I wonder if "context" is a better word.

In the final example where the Callback class is used, the prototype for "attach" has one argument but the calls to it give two arguments. Please explain.

Now ref:

What is an uninitialized callback? What is a "concrete type"? What is "lightweight".

Thanks for any enlightenment. I don't like to use features without knowing a little of what's going on underneath the surface.

Comment on this question
Be the first to answer this question.

To post an answer, please log in.