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

Flatten reference scopes #87

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Flatten reference scopes #87

merged 1 commit into from
Sep 7, 2023

Conversation

samestep
Copy link
Contributor

@samestep samestep commented Sep 7, 2023

Now that we've restricted Refs to parameters and local variables as of #64, there's no real reason for instructions introducing Ref scopes to require their own blocks; we can just introduce the scope in an instruction and then resolve it in another instruction later in the same block. I think I had also previously thought that this would make validation harder in #53, but now I no longer think that's the case; all you need to do is mark reference variables using the same scope as expired once you reach the "resolve" instruction. Anyway, this will make #86 easier because it means that a function's level of nesting can no longer drastically increase during transposition.

@samestep samestep merged commit e2d86f0 into main Sep 7, 2023
2 checks passed
@samestep samestep deleted the flatten-ref-scopes branch September 7, 2023 15:49
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