in reply to Re^8: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?
I don't have an example: it's just me playing with fire, and learning.
The closest example that i found is here. It's a video game character that can be turned into a Zombie, poisoned (which could make her stronger if she's a zombie), turned into a Chipmunk, an Angel (which turns it into a Dead-Angel if it's also a Zombie), break a leg, or any combination of the above.
Maybe i'll never need that in real life. But sometimes it's when you know that something is possible, that it gets you out of a complex situation elegantly.
And... i like learning and experimenting new ways.