
5 Aug
2008
5 Aug
'08
11:35 a.m.
Hello,
I noticed that if I declare an event as deferred in a "parent" state
(unintentionally), and define the reaction in some "indirect" inner
state, then this reaction has no chance to be called.
Is this the correct behavior or a bug?
Example (pseudo-code):
struct Parent : simple_state<..., Inner1>
{
defer Ev1; //of course, this is unnecessary; but if this an error?
if I leave this line, then when we come to Inner1_3, the Ev1 is *not*
processed; if I remove this line, everything is ok!
};
struct Inner1
{
defer Ev1;
transit