Im interested in creating arrays of functions which don't take arguments and don't return anything.
Is there a way to create a generic function pointer and execute it?
Example:
ptr ptrArray[1];
PtrArray[0] = &myfunc;
More generally does this work if myfunc is a method in a specifc object? Part of me assumes not since functions are shared across multiple objects in code.
For example, you have a list of objects all with an update method, you want each one executed.