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

Support break statements #165

Open
j-hui opened this issue May 19, 2023 · 0 comments
Open

Support break statements #165

j-hui opened this issue May 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@j-hui
Copy link
Contributor

j-hui commented May 19, 2023

The code and syntax for this is actually already there ("completed" in 152d994), but I took it out in 669814e.

The problem is break completely breaks (ROFL) reference counting, because break ing out of a loop forgoes any inserted drops. The fix might be to rewrite how codegen handles loops, or to rewrite how codegen handles drops. We may even need to rewrite most of codegen.

@j-hui j-hui added the bug Something isn't working label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant