I have to "exit" the running program, in C I would call

#include <stdlib.h>
exit(0);

in Python:

sys.exit(0);


What's the correct way to do that in D?
My current implementation:

import core.runtime : Runtime;
import core.stdc.stdlib : exit;

Runtime.terminate();
exit(0);

But that doesn't seem correct.

Reply via email to