-
Notifications
You must be signed in to change notification settings - Fork 13k
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 can't return int #688
Comments
Well .. the program (properly: root task) returns zero. That's because the exit status is from the runtime, indicating presence or absence of failure (1 or 0 respectively) in the root task. I suppose we can have "return nonzero" from main propagate out to the program return as well; but I'd like "fail" to continue to return nonzero from the root task as well. |
Ah, that didn't occur to me. For my particular use case I just want to indicate failure anyway, so I actually don't need to return int. Maybe it's not necessary. |
So should we close this? |
Maybe we should at least make sure main has to return () so people don't get the impression they can return int |
Closing this per discussion with brson. We can reopen it if we change our mind. |
Disable revocation checking temporarily on AppVeyor
When main is declared to return int, it always returns 0.
The text was updated successfully, but these errors were encountered: