[Issue 11378] implicit runtime initialization/finalization is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 31 00:29:15 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11378


Jacob Carlborg <doob at me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob at me.com


--- Comment #12 from Jacob Carlborg <doob at me.com> 2013-10-31 00:29:11 PDT ---
(In reply to comment #11)

> Exiting a thread is different from exiting the process and even that would
> require more for a correct shutdown than C's exit function.
> 
> The only mechanism that we have which could correctly unwind a stack and free
> all resources is throwing an Exception. What's your use-case for this?

Can't we setup a callback using "atexit" which correctly terminates the
runtime?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list