Is it possible to declare some function type func_t which returns that type, func_t?
In other words, is it possible for a function to retur
If you were using C++, you could create a State object type (presuming the state machine example usage) wherein you declare an operator() that returns a State object type by reference or pointer. You can then define each state as a derived class of State that returns each appropriate other derived types from its implementation of operator().