Thank you very much for clarifying and the detailed reply Miro. This is interesting. I can now see the polymorphism implementation in C.
Thank you for the response, I realized I was referring incorrect documentation for my qp-nano-arduino. Even then, I am curious to know How QMsm and QHsm are different. I see QMState and QState are different structures but why is QHsm not reused and another structure name has been created. Is it for readability purpose ? Please guide. I am learning the framework and any link would also help/suffice..
Dear QuantumLeaps, The code says typedef QHsm QMsm but I see from the documentation QMsm is more effective implementation and runs faster? Could you please help me understand. I have just started working on QP Nano arduino. I dont understand the differentiating factor.