Does D supply basic error codes?

Jesse Phillips jessekphillips+D at gmail.com
Sun Jan 29 20:15:23 PST 2012


On Sunday, 29 January 2012 at 23:58:50 UTC, bearophile wrote:
> mta`chrono:
>
>> import core.stdc.stdlib;
>> 
>> int main()
>> {
>> 	return EXIT_FAILURE; // EXIT_SUCCESS works here too.
>> }
>
> And in D void main(){} returns a EXIT_SUCCESS.
>
> Bye,
> bearophile

Except when exited due to an exception thrown.


More information about the Digitalmars-d-learn mailing list