I'm sure many people ask this so sorry for asking again...
I would like to have a field within a type which is a pointer to a function. This can be set externally from the type and then when the type needs to call that function it can just use its field which contains the pointer. How can I do this please?
Thanks in advance.
I would like to have a field within a type which is a pointer to a function. This can be set externally from the type and then when the type needs to call that function it can just use its field which contains the pointer. How can I do this please?
Thanks in advance.