Open GoogleCodeExporter opened 8 years ago
[deleted comment]
[deleted comment]
[deleted comment]
The problem is not there. The problem is a side effect of that transition in a
different hierarchical state.
If there is a transition from optionState to doneState on gameover event, then
replay event causes the exception
in the done to playstate transition. This is a different hierarchy and the
exception is a side-efffect and a surprise!
I removed the transition from optionstate to donestate on gameover event.
The transition done to wait-for-user on replay event works again without
raising an exception.
Original comment by r...@haystack.mit.edu
on 14 Jul 2011 at 4:17
I think the larger design issue is that a transition to a state that is not in
the "from" state's hierarchy generates unrecoverable side-effects.
Original comment by r...@haystack.mit.edu
on 18 Jul 2011 at 12:17
Original issue reported on code.google.com by
r...@haystack.mit.edu
on 14 Jul 2011 at 2:00