-
Notifications
You must be signed in to change notification settings - Fork 230
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
main() return value #75
Comments
Hi, main returns a value in a C program, Gravity simply uses a different convention, it returns what the user decides to return explicitly. |
Ok, is there a way to exit with a specific code? Something like |
From where? |
I want to abort the execution in my gravity code so that my last exit code in my shell ( |
I just added a System.exit(n) method: db7c9eb |
Very nice, thanks :) |
Hey there,
I'm playing with gravity for a while now and I really like it :)
But what I wonder is if the return value of the
main()
function shouldn't be the return value of the program, so if I writereturn 5;
I assume the program to exit with error code 5. Maybe It's my fault or it's a design decision.Nice project, have a good time
The text was updated successfully, but these errors were encountered: