Skip to content

Conversation

@walkie
Copy link
Contributor

@walkie walkie commented Aug 12, 2021

This fixes a bug where no Enter event was being generated when entering the initial state.

A new initialize() method has been added to the state machine (the name of the method is configurable with the new initialize_method_name configuration option). This method is called from the state machine's constructor and currently just sends an Enter event to the initial state.

Putting such initialization work in a new method (rather than in the constructor directly) makes it easier to write custom constructors for state machines.

This fixes one of the previously failing/ignored tests added by @fdlg in #13.

@frame-lang frame-lang merged commit a07527a into frame-lang:main Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants