Proper way to exit with specific exit code?

Imperatorn johan_forsberg_86 at hotmail.com
Sun Nov 13 22:06:09 UTC 2022


On Sunday, 13 November 2022 at 21:37:47 UTC, mw wrote:
> On Sunday, 13 November 2022 at 21:16:32 UTC, mw wrote:
>
>> I even tried core.stdc.stdlib.exit(-1), it does not work.
>
> Tried
> ```
> import core.runtime;
>    Runtime.terminate();
>    core.stdc.stdlib.exit(-1);
> ```
>
> Still does not work.

I have no idea why it would fail. What about assert(0)?


More information about the Digitalmars-d-learn mailing list