On 2015-12-17 06:11, Jakob Ovrum wrote:

Ouch, that's not good. `exit` is not a good way to terminate a D
program. It doesn't call destructors, including module destructors. The
example should be restructured to `return 1;` from `main`.

I agree with that, but why don't the runtime register a function with "atexit" that cleans up everything?

--
/Jacob Carlborg
  • exit(1)? Shriramana Sharma via Digitalmars-d-learn
    • Re: exit(1)? Jakob Ovrum via Digitalmars-d-learn
      • Re: exit(1)? Jacob Carlborg via Digitalmars-d-learn
      • Re: exit(1)? Shriramana Sharma via Digitalmars-d-learn

Reply via email to