Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp: record runner state at the first Reset call
This is perhaps a bit confusing, but it's a good middle ground. This lets us support Reset while not undoing changes that the user has done outside of New, which is common. The downside is that making any changes after the first call to Run or Reset are undone by further calls to Reset. However, that's fine; Reset is meant to return a runner to its initial state, not any other previous or arbitrary state.
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters