Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor overflow options into separate options #99

Merged
merged 7 commits into from
Jul 6, 2024

Conversation

Sergio0694
Copy link
Owner

Description

This PR refactors the OverflowMode option into two separate options:

  • DataType, for choosing the data type of a state machine
  • ExecutionOptions, for choosing things such as overflow

This better decouples the options from the machine state and makes it easier to do more refactoring to switch to all the new .NET stuff in future PRs. The previous organization was awkward because it tied additional options (eg. overflow) to a given state machine, despite those options having no effect on the actual memory state of a given state machine.

With this change, only options actually impacting the memory layout have to be carried around as part of a state machine.

@Sergio0694 Sergio0694 merged commit 7dc74ac into main Jul 6, 2024
6 checks passed
@Sergio0694 Sergio0694 deleted the dev/refactor-overflow-mode branch July 6, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant