Why doesn't gen_statem allow {next_event, ...} for state enter?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Why doesn't gen_statem allow {next_event, ...} for state enter?

Torben Hoffmann
Hi,

I have just been bitten by this:
state1(enter, ...) ->
    ...
            {next_state, state2, NewData,
             {next_event, internal, just_do_it}};

but that is not a legal action for an enter thingy.

Why is that so?

Cheers,
Torben
--

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Why doesn't gen_statem allow {next_event, ...} for state enter?

Raimo Niskanen-2
On Fri, May 04, 2018 at 12:35:25PM +0000, Torben Hoffmann wrote:

> Hi,
>
> I have just been bitten by this:
> state1(enter, ...) ->
>     ...
>             {next_state, state2, NewData,
>              {next_event, internal, just_do_it}};
>
> but that is not a legal action for an enter thingy.
>
> Why is that so?

That bug was fixed in OTP-20.3.2.


>
> Cheers,
> Torben
> --
> https://www.linkedin.com/in/torbenhoffmann/


--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Why doesn't gen_statem allow {next_event, ...} for state enter?

Torben Hoffmann
Thx, time to upgrade!
On Fri, 4 May 2018 at 15:31, Raimo Niskanen <[hidden email]> wrote:
On Fri, May 04, 2018 at 12:35:25PM +0000, Torben Hoffmann wrote:
> Hi,
>
> I have just been bitten by this:
> state1(enter, ...) ->
>     ...
>             {next_state, state2, NewData,
>              {next_event, internal, just_do_it}};
>
> but that is not a legal action for an enter thingy.
>
> Why is that so?

That bug was fixed in OTP-20.3.2.


>
> Cheers,
> Torben
> --
> https://www.linkedin.com/in/torbenhoffmann/


--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
--

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions