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

Exclude the return_value from the output if the function return type is void #29

Open
NeeEoo opened this issue Feb 20, 2021 · 0 comments · May be fixed by #55
Open

Exclude the return_value from the output if the function return type is void #29

NeeEoo opened this issue Feb 20, 2021 · 0 comments · May be fixed by #55

Comments

@NeeEoo
Copy link
Contributor

NeeEoo commented Feb 20, 2021

Every function called adds

return_value [paramN...] [localN...]

to the cells, even for void functions. So the return_value cell can be omitted, to make the code smaller and faster execution of the code since the pointer doesn't have to move around so much.

This would make side effects if you return in a void function unless the compiler prevents it.

@NeeEoo NeeEoo linked a pull request Apr 19, 2021 that will close this issue
16 tasks
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 a pull request may close this issue.

1 participant