return the other functions of the void main()

Ivan Kazmenko via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 10 00:15:50 PDT 2015


On Thursday, 9 April 2015 at 17:39:43 UTC, Dennis Ritchie wrote:
> On Thursday, 9 April 2015 at 17:38:42 UTC, Dennis Ritchie wrote:
>> I think it has something to do with Vindovs :)
>
> *Windows

Indeed, you can test it on Windows locally by running a .cmd file 
such as:
-----
a.exe
echo %ERRORLEVEL%
-----

With dmd 2.066 (as on Codeforces), it gives me non-zero exit code.

With dmd 2.067.0, the return code seems to always be zero.


More information about the Digitalmars-d-learn mailing list