stdlib.exit()

David d at dav1d.de
Sun Aug 19 10:33:34 PDT 2012


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.


More information about the Digitalmars-d-learn mailing list