Thanks GF, will try, i think you have a typo here btw : (p->*p->state)();
Yes Andy, i am trying to eliminate a switch in loop, those big switches are very slow.
I use this technique normally without classes, and its really helping to make things faster,
not only faster, the programming is also very simple, have a seperate function for everything, ok there might be some code double typed, im not optimizing for space only for speed.