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

Fixed a bug with the Select Statement #20

Merged
merged 4 commits into from
Apr 16, 2024
Merged

Conversation

JothamWong
Copy link
Member

We previously would not block on Select if none of the cases matched because we falsely assumed that there would always be a Default case, as handled by our parser. After checking the Golang specifications, our assumption was false and we have no changed the Select to handle this detail.

Note that adding to the standard library increases the min number of words that Ooga needs to operate
We previously assumed there was always a default case but that's actually not the case at all
…f has default

If there is a default case, these machine instructions will never be reached.
@JothamWong JothamWong merged commit 9ee648a into main Apr 16, 2024
1 check passed
@JothamWong JothamWong deleted the make-select-block-on-none branch April 16, 2024 17:57
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.

1 participant