allow multiple kinds of return types from main #535
Labels
accepted
This proposal is planned.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Currently, this is the main entry point function:
The bootstrap code runs it, checks the return value, and makes the exit/ExitProcess syscall.
If a zig user wants to do their own process exiting, however, they should be able to make the return type
noreturn
, and then the bootstrap code does not need to handle cleanup.This shaves off a couple of bytes of bloat for some of our more hardcore users such as demoscene programmers.
The text was updated successfully, but these errors were encountered: