
27 May
2004
27 May
'04
10:53 p.m.
On the subject of Constructors/destructors for state entry/exit- A consideration is that the state object also gets deleted on shutdown (or deletion of the FSM), which is not a state-transition event as such. Entry/Exit functions are more explicitly about state transitions, whereas destructors/constructors make us need to think about state object lifetimes and needlessly constrain implementation down a certain path. Simon