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

words with lest or unless flow control may not be inlined #17

Open
Bushmills opened this issue Feb 24, 2022 · 0 comments
Open

words with lest or unless flow control may not be inlined #17

Bushmills opened this issue Feb 24, 2022 · 0 comments

Comments

@Bushmills
Copy link
Owner

Bushmills commented Feb 24, 2022

both lest and unless compile conditional exits, which break out of the function lest or unless were compiled into. When that code gets inlined into another word, it will exit from that word instead, rather than only from the word which was originally within lest or unless scope. For words having exitcompiled into (translated into a return from function), same applies.

workaround for now: don't mark words containing lest, unless or exit with inline.
fix thought of: lest, unless, exit mark the word as "may not inline", which is checked by inline, Upon attempt to tag such a word as inline, an error is thrown.

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

No branches or pull requests

1 participant