
Simplify Callback Dispatching with Enumerated Indexes
Callbacks, either in the form of function pointers or pointers to members, offer a significant advantage over direct function calls: the caller doesn’t have to know a function’s name (nor its object’s name, if it’s a member function) in order to invoke it. Alas, this anonymity is a fertile source