[Issue 971] No profiling output is generated if the application terminates with exit

Sean Kelly sean at f4.ca
Fri Feb 16 15:53:16 PST 2007


d-bugmail at puremagic.com wrote:
>
> ------- Comment #3 from david at ferenczi.net  2007-02-16 16:31 -------
> It may have been just a bad practice of mine to use the exit function also for
> normal terminating. The question is, if it's really a misuse, or e.g. 
> exit(EXIT_SUCCESS) should be treated as normal termination.

That's a good question.  A normal termination in C terms is not a normal 
termination in D terms, but one could argue that the D runtime should 
handle this case anyway.  I think it would be easy enough to do with 
atexit() however.


More information about the Digitalmars-d-bugs mailing list