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

Fix evaluation of return statements #3

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

anubh-v
Copy link
Owner

@anubh-v anubh-v commented Feb 6, 2020

Fixes #1

When we analyze the sub-expression in a return statement, we obtain a function that
expects three arguments: the environment, success and failure continuations.

Let's pass the correct number of arguments when we apply this function, so that
return statements can be correctly evaluated.

@anubh-v anubh-v merged commit 5de3453 into master Feb 6, 2020
@anubh-v anubh-v deleted the anubhv-fix-analyze-return-stmt branch February 6, 2020 10:19
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.

Calling a function gives an error
1 participant