[erlang-questions] Why doesn't gen_statem allow {next_event, ...} for state enter?

Raimo Niskanen raimo+erlang-questions@REDACTED
Fri May 4 15:30:25 CEST 2018


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



More information about the erlang-questions mailing list